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 = "<?php \n" . '$k = ' . preg_replace("/(\'\\$[^,]+)/e" , "stripslashes(trim('\\1','\''));", var_export($t, true)) . ";\n"; 改成$out = "<?php \n" . '$k = ' . preg_replace("/(\'\\$[^,]+)/" , "stripslashes(trim('\\1','\''));", var_export($t, true)) . ";\n";
(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.