错误:Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in C:\wamp\www\ecshop3\includes\cls_template.php on line 300
//return preg_replace(“/{([^\}\{\n]*)}/e”, “\$this->select(‘\\1′);”, $source);
修改:
1 2 3 | |
错误:Strict standards: Only variables should be passed by reference in C:\wamp\www\ecshop3\includes\cls_template.php on line 423
修改:
1 2 | |
错误:
Strict standards: Redefining already defined constructor for class cls_sql_dump in C:\wamp\www\ecshop3\admin\includes\cls_sql_dump.php on line 90
类的构造方法,位置颠倒,__construct()前置
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | |
错误:Strict standards: Non-static method cls_sql_dump::get_random_name() should not be called statically in C:\wamp\www\ecshop3\admin\database.php on line 64
修改:get_random_name()为静态:
1 | |
错误:Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in C:\wamp\www\ecshop3\includes\cls_template.php on line 1075
修改为:
1 2 3 4 5 | |
错误:Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in C:\wamp\www\ecshop3\includes\cls_template.php on line 497
1 2 | |
错误: Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in C:\wamp\www\ecshop3\includes\cls_template.php on line 556
修改为:
1 2 3 4 | |
错误:Strict standards: Only variables should be passed by reference in C:\wamp\www\ecshop3\includes\lib_main.php on line 1332
解决:
1 2 3 | |
错误:Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\ecshop3\includes\lib.debug.php on line 303
修改为:
1 2 | |
Strict Standards: Redefining already defined constructor for class paypal
PHP 类,有两种构造函数,一种是跟类同名的函数,一种是 ____construct()。从PHP5.4开始,对这两个函数出现的顺序做了最严格的定义,必须是 ____construct() 在前,同名函数在后
例如:
function __construct()
{
$this->paypal();
}
function paypal()
{
}
mktime(): You should be using the time() function instead
mktime()方法不带参数被调用
将$auth = mktime();
替换为
1 | |
Strict Standards: Declaration of vbb::set_cookie() should be compatible with integrate::set_cookie($username = ”, $remember = NULL)
子类的函数跟父类的同名,必须使子类的函数参数跟父类的对应函数参数个数相同
依据错误提示,修改例如:
function set_cookie ($username=””)
改为
1 | |
会员整合中的其他类似的提示,相同的修改方式