Beberapa perubahan jika menggunakan codeigniter di php 5.3
Jika pesan error
Deprecated: Assigning the return value of new by reference is deprecated in system\codeigniter\Common.php on line 130
ubah dan edit file pada system\codeigniter\Common.php baris 130
$objects[$class] =& new $name();
menjadi
$objects[$class] =new $name();
Jika ada pesan error :
Deprecated: Assigning the return value of new by reference is deprecated in \system\codeigniter\Common.php on line 136
Ubah dan edit file pada system\codeigniter\Common.php baris 136
$objects[$class] =& new $name();
menjadi
$objects[$class] =new $name();
Jika ada pesan error
Message: Function set_magic_quotes_runtime() is deprecated
ubah
set_magic_quotes_runtime(0);
menjadi
@set_magic_quotes_runtime(0);
Jika ada pesan error
A PHP Error was encountered
Severity: 8192
Message: Assigning the return value of new by reference is deprecated
Filename: libraries/Loader.php
Line Number: 255
ubah dan edit file pada libraries/Loader.php pada baris 255
$CI->dbutil =& new $class();
menjadi
$CI->dbutil =new $class();
Jika ada pesan error
A PHP Error was encountered
Severity: 8192
Message: Assigning the return value of new by reference is deprecated
Filename: database/DB.php
Line Number: 133
Ubah dan edit file pada database/DB.php baris 133
$DB =& new $driver($params);
menjadi
$DB =new $driver($params);
Jika ada pesan error :
The url has disallowed Character
Ubah dan edit file pada system/libraries/URI.php baris 189
if ( ! preg_match("|^[".preg_quote($this->config->item('permitted_uri_chars'))."]+$|i", rawurlencode($str)))
Menjadi
if ( ! preg_match("|^[".($this->config->item('permitted_uri_chars'))."]+$|i", rawurlencode($str)))
untuk error fungsi date time anda harus set tanggal di php.ini dengan cara mengaktifkan
date.timezone ='Asia/Jakarta';