PHP Deprecated: Assigning the return value of new by reference is deprecated

Michael_DD發表於2015-06-03
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 中直接可以使用“=”,已經棄用了“=&”。再定位錯誤行發現,每一行都有"=&",於是將所有的“=&”都替換成“=”

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29500582/viewspace-1684771/,如需轉載,請註明出處,否則將追究法律責任。

相關文章