php5.6 CI的问题(Only variable references should be returned by reference)

Posted ddxg

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php5.6 CI的问题(Only variable references should be returned by reference)相关的知识,希望对你有一定的参考价值。

[转载]

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];

 

以上是关于php5.6 CI的问题(Only variable references should be returned by reference)的主要内容,如果未能解决你的问题,请参考以下文章

Only variables should be assigned by reference

MagicZoom bug-Strict Standards: Only variables should be assigned by reference Error

PHP报错Only variables should be passed by reference in的解决方法

ECshop Strict Standards: Only variables should be passed by reference in解决办法

php CI_loadview_with_variable

Ecshop提示Only variables should be passed by reference in错误