From 1426683192291ee821c713c3047cb2b2f9bac592 Mon Sep 17 00:00:00 2001 From: Michael Hamann Date: Fri, 14 Sep 2012 13:46:30 +0200 Subject: Only call set_magic_quotes_runtime in the installer when it exists FS#2583 According to the documentation the function was removed in PHP 5.4.0 though it still seems to exist in my PHP 5.4.6 installation. --- install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install.php') diff --git a/install.php b/install.php index dc5a617c2..d954e20ed 100644 --- a/install.php +++ b/install.php @@ -24,7 +24,7 @@ if (get_magic_quotes_gpc() && !defined('MAGIC_QUOTES_STRIPPED')) { @ini_set('magic_quotes_gpc', 0); define('MAGIC_QUOTES_STRIPPED',1); } -@set_magic_quotes_runtime(0); +if (function_exists('set_magic_quotes_runtime')) @set_magic_quotes_runtime(0); @ini_set('magic_quotes_sybase',0); // language strings -- cgit v1.2.3