don't call set_magic_quotes_runtime if it doesn't exists FS#2583

this function was removed in PHP 5.4.0
This commit is contained in:
Andreas Gohr 2012-08-26 13:25:29 +02:00
parent 99e10b7f23
commit c114d4c4a0
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,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);
// don't let cookies ever interfere with request vars