my client can’t wait for CI 1.7.2
so i have to make several changes myself
here what i do
A. remove by condition set_magic_quotes_runtime
file: codeigniter/CodeIgniter.php (line: 60)
if(!phpversion()=='5.3.0')
set_magic_quotes_runtime(0); // Kill magic quotes
B. remove all new object by reference, change ‘=&’ to ‘=’
from:
$objects[$class] =& new $name();
became:
$objects[$class] = new $name();
file: codeigniter/Common.php (line: 130)
file: codeigniter/Common.php (line: 136)
file: libraries/Loader.php (line: 255)
file: database/DB.php (line: 133)
$objects[$class] = new $name();
see: = new
C. since hyphen ‘-’ became special character in php 5.3, change this way:
file: config/config.php (line: 153)
from:
$config['permitted_uri_chars'] = 'a-z ~%.:_\-';
to:
$config['permitted_uri_chars'] = '~%.:_\-';
file: libraries/URI.php (line: 189)
from:
if ( ! preg_match("|^[".preg_quote($this->config->item('permitted_uri_chars'))."]+$|i", $str))
to:
if ( !
preg_match("|^[\w".preg_quote($this->config->item('permitted_uri_chars'))."]+$|i", $str))
wacth!:
! preg_match(”|^[\w
i hope this can help
이클립스로 디버그할때 4.X , 5.X... 여러개를 설치해 두고 바꿔가면서 돌려보아야 하겠네요^^
CI버젼도 앞으로는 5.X 최적화된 배포버젼이 나오기를 기대하면서 유용한팁 얻어갑니다.~