CodeIgniter与PHP5.6的兼容问题

时间:2022-09-17 13:48:49

错误提示:

?
1
2
3
4
5
6
7
8
9
A PHP Error was encountered
 
Severity: Notice
 
Message: Only variable references should be returned by reference
 
Filename: core/Common.php
 
Line Number: 257

原代码:

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

修改后:

?
1
2
3
$_config[0] =& $config;
 
return $_config[0];

以上所述就是本文的全部内容了,希望大家能够喜欢。