急今天看了一下ECSHOP的代码,却运行不起来,请问这是怎么回事?

WBOY
Release: 2016-06-23 13:31:51
Original
1066 people have browsed it

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

PHP一点都不会,在网上查了一下:说preg_replace已经过时了,都用preg_replace_callback了。于是就把所有的preg_replace都替换成preg_replace_callback了。可之后还是不行。

请问怎么回事?谢谢!


回复讨论(解决方案)

换成preg_replace_callback之后 修饰符e也去掉

给 error_reporting 附加一个  ^ E_DEPRECATED 即可
不必去修改代码(估计你改不好)
待以后升级 ECSHOP 就没事了

我又改了一次,可以出来东西了。但又出现了新的错误,完全晕菜了。
就是它兼容性有问题。谢谢两位了。

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!