1. 程式人生 > >php5.6 CI的問題(Only variable references should be returned by reference)

php5.6 CI的問題(Only variable references should be returned by reference)

message error nbsp ble erro only class 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

原代碼:

return $_config[0] =& $config;

修改後:

$_config[0] =& $config;

return $_config[0];

#CI

php5.6 CI的問題(Only variable references should be returned by reference)