ecshop安装时应改的错误
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in C:\xampp\htdocs\ec\upload\includes\cls_template.php on line 493
return preg_replace_callback("/{([^\}\{\n]*)}/", function($r) { return $this->select($r[1]); }, $source);
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in C:\xampp\htdocs\ec\upload\includes\cls_template.php on line 1073
$pattern = '/<!--\s#BeginLibraryItem\s\"\/(.*?)\"\s-->.*?<!--\s#EndLibraryItem\s-->/s'; $replacement = function ($r) { return '{include file='.strtolower($r[1]). '}'; }; $source = preg_replace_callback($pattern, $replacement, $source);
cls_template.php的300行
return preg_replace_callback("/{([^\}\{\n]*)}/", function($r) { return $this->select($r[1]); }, $source);
将cls_template.php的493行
$out = <?php \n" . '$k = ' . preg_replace_callback("/(\'\\$[^,]+)/" , function($r) {return stripslashes(trim($r[1],'\''));}, var_export($t, true)) . ";\n";
将cls_template.php的552行
$val = preg_replace_callback("/\[([^\[\]]*)\]/", function($r) {return '.'.str_replace('$','$',$r[1]);}, $val);
将cls_template.php的422行
$tag_val = explode(' ', $tag); $tag_sel = array_shift($tag_val);
lib_base.php345行
return cls_image::gd_version();然后在找到include/cls_image.php中的678行,发现gd_version()方 法未声明静态static,所以会出错。这时候只要: 1)将function gd_version()改成static function gd_version()即可。
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in C:\xampp\htdocs\ec\upload\includes\cls_template.php on line 554
$val = preg_replace_callback("/\[([^\[\]]*)\]/is", function($r) { return '.'.$r[1]; }, $val);
Strict Standards: mktime(): You should be using the time() function instead in C:\xampp\htdocs\ec\upload\admin\sms_url.php on line 31
Strict Standards: mktime(): You should be using the time() function instead in C:\xampp\htdocs\ec\upload\admin\shop_config.php on line 32
$auth = time();