急今天看了一下ECSHOP的代码,却运行不起来,请问这是怎么回事?
Jun 23, 2016 pm 01:31 PM 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 就没事了
我又改了一次,可以出来东西了。但又出现了新的错误,完全晕菜了。
就是它兼容性有问题。谢谢两位了。

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

11 Best PHP URL Shortener Scripts (Free and Premium)

Working with Flash Session Data in Laravel

Build a React App With a Laravel Back End: Part 2, React

Simplified HTTP Response Mocking in Laravel Tests

cURL in PHP: How to Use the PHP cURL Extension in REST APIs

12 Best PHP Chat Scripts on CodeCanyon

Announcement of 2025 PHP Situation Survey
