ecshop/ectouch php5.4+版本报错解决方案

1.

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /includes/cls_template.php on line 300

return preg_replace( "/{([^/}/{/n]*)}/e" , "/$this->select('//1');" , $source );
改成
return preg_replace_callback( "/{([^/}/{/n]*)}/" , function ( $r ) { return $this ->select( $r [1]); }, $source );(ecshop/ectouch)

2.

Strict Standards: Only variables should be passed by reference in /includes/cls_template.php on line 422



$tag_sel
= array_shift ( explode ( ' ' , $tag ));
改成
$tag_arr = explode ( ' ' , $tag );
$tag_sel
= array_shift ( $tag_arr );(ecshop/ectouch)

3.

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /includes/cls_template.php on line 480

$out = "
改成
$out = "(ecshop/ectouch)

4.

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in E:\www\solaibao\code_svn\includes\cls_template.php on line 541

$val = preg_replace("/\[([^\[\]]*)\]/eis", "'.'.str_replace('$','\$','\\1')", $val);
改成


5.

Warning: Illegal string offset 'goods_id' in E:\www\solaibao\code_svn\includes\cls_template.php(1168) : eval()'d code on line 80

改成



6.











你可能感兴趣的:(ecshop/ectouch php5.4+版本报错解决方案)