《php高版本安装ecshop错误解决办法》由会员分享,可在线阅读,更多相关《php高版本安装ecshop错误解决办法(3页珍藏版)》请在金锄头文库上搜索。
1、1、Strict Standards: Non-static method cls_image:gd_version() should not be called statically in F:xampphtdocsceshiincludeslib_base.php on line 346找到lib_base.php 第 346行将它注释 /return cls_image:gd_version();添加 $p = new cls_image(); return $p-gd_version(); 即可2、Deprecated: preg_replace(): The /e modifier
2、is deprecated, use preg_replace_callback instead in F:xampphtdocsceshiincludescls_template.php on line 300找到lib_template.php 第 300行将它注释 /return preg_replace(/(n*)/e, $this-select(1);, $source);添加 return preg_replace_callback(/(n*)/, function($r)return $this-select($r1);, $source); 即可3、Strict Standar
3、ds: Only variables should be passed by reference in F:xampphtdocsceshiincludescls_template.php on line 422找到lib_template.php 第 422行将它注释 /$tag_sel = array_shift(explode( , $tag);添加 $tag_arr = explode( , $tag); $tag_sel = array_shift($tag_arr); 即可4、 Deprecated: preg_replace(): The /e modifier is depre
4、cated, use preg_replace_callback instead in F:xampphtdocsceshiincludescls_template.php on line 1074找到lib_template.php 第 1074行将它注释 /$pattern = /.*?/se;/ $replacement = include file=.strtolower(1). ;/$source = preg_replace($pattern, $replacement, $source);添加 $pattern = /.*?/s; $replacement = function(
5、$r)return include file=.strtolower($r1). ; $source = preg_replace_callback($pattern, $replacement, $source); 即可5、 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead inF:xampphtdocsceshiincludescls_template.phpon line496找到lib_template.php 第 496行将它注释 /$out = ?php n . $k = . preg_replace(/($,+)/e , stripslashes(trim(1,);, var_export($t, true) . ;n;添加 $out = paypal(); function paypal()