From 962d2258f9b2f2b8e3dbce7368b69673e839eb54 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Wed, 5 Aug 2009 04:26:11 +0000 Subject: protected @set_magic_quotes_runtime(0); from running under PHP 5.3, as it will trigger the loading of the Exceptions class, which triggers get_config() which will statically load some config items that might change later with $assign_to_config --- system/codeigniter/CodeIgniter.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'system/codeigniter/CodeIgniter.php') diff --git a/system/codeigniter/CodeIgniter.php b/system/codeigniter/CodeIgniter.php index 5c14c7d3d..5cf7d2fdc 100644 --- a/system/codeigniter/CodeIgniter.php +++ b/system/codeigniter/CodeIgniter.php @@ -57,7 +57,11 @@ require(APPPATH.'config/constants'.EXT); * ------------------------------------------------------ */ set_error_handler('_exception_handler'); -@set_magic_quotes_runtime(0); // Kill magic quotes + +if ( ! is_php(5.3)) +{ + @set_magic_quotes_runtime(0); // Kill magic quotes +} /* * ------------------------------------------------------ -- cgit v1.2.3-24-g4f1b