PHP CI - Only variable references should be returned by reference

摘要:PHP CI - Only variable references should be returned by reference

應該是PHP版本差異,

導致出現這樣的錯誤訊息


A PHP Error was encountered
Severity: Notice
Message: Only variable references should be returned by reference
Filename: core/Common.php
Line Number: 257

找到錯誤的問題檔案在

system/core/Common.php 底下

將資料改為

Edit filename: core/Common.php, line number: 257

Before


return $_config[0] =& $config; 

After


$_config[0] =& $config;
return $_config[0];