PHP Deprecated: Assigning the return value of new by reference is deprecated
现象:
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/pear/DB/common.php on line 1166
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/pear/DB.php on line 1124
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/pear/DB/common.php on line 963
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/pear/DB/common.php on line 1166
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/pear/DB.php on line 1124
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/pear/DB/common.php on line 963
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/pear/DB/common.php on line 1166
解决办法:
PHP 5.3 中直接可以使用“=”,已经弃用了“=&”。再定位错误行发现,每一行都有"=&",于是将所有的“=&”都替换成“=”
现象:
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/pear/DB/common.php on line 1166
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/pear/DB.php on line 1124
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/pear/DB/common.php on line 963
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/pear/DB/common.php on line 1166
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/pear/DB.php on line 1124
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/pear/DB/common.php on line 963
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/pear/DB/common.php on line 1166
解决办法:
PHP 5.3 中直接可以使用“=”,已经弃用了“=&”。再定位错误行发现,每一行都有"=&",于是将所有的“=&”都替换成“=”
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29500582/viewspace-1684771/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29500582/viewspace-1684771/