[PHP] Severity: Notice Only variable references should be returned by reference on CodeIgniter-2.1

Severity: Notice Only variable references should be returned by reference

(아주) 구 버전의 CodeIgniter 에서 발생할 수 있는 오류

 

 

1. 환경

  • PHP-5.6
  • CodeIgniter-2.1.3

 

php-5.2 버전에서는 에러 출력X
CodeIgniter-2.2 버전부터는 수정된 문제

 

 

2. 수정

파일명 : $CodeIgniter_PATH/system/core/Common.php

line : 257

 

 

원래내용


return $_config[0] = & $config;

 

 

변경


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

 

About KENNETH 19688 Articles
지락문화예술공작단

Be the first to comment

Leave a Reply

Your email address will not be published.


*


이 사이트는 스팸을 줄이는 아키스밋을 사용합니다. 댓글이 어떻게 처리되는지 알아보십시오.