更改 core/Common.php 结果 net::ERR_TOO_MANY_REDIRECTS

changes core/Common.php results net::ERR_TOO_MANY_REDIRECTS

服务器 PHP 升级后,我在 Apache 2.0

上使用 PHP 版本 5.6.2 时收到以下错误
A PHP Error was encountered
Severity: Notice
Message: Only variable references should be returned by reference
Filename: core/Common.php
Line Number: 257

然后我改了core/Common.php

return $_config[0] =& $config  

进入

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

这导致站点重定向过多,并出现 302 错误

在 core/Common.php

在第 257 行添加此行

return $_config[0];  

当我升级我的 codeigniter 版本时,我已经尝试过它对我有用