From: Stig Bakken Date: Tue, 28 May 2002 00:45:19 +0000 (+0000) Subject: * disable *&$^*#@ runtime ^@#*&$@ magical ^*!@@!! quoting X-Git-Tag: NEW_UI_API_BP~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=599cede43e801b90c3325adee19b80cfeb81f3ae;p=php * disable *&$^*#@ runtime ^@#*&$@ magical ^*!@@!! quoting --- diff --git a/pear/PEAR/Config.php b/pear/PEAR/Config.php index 26917fa79a..d07aeaae28 100644 --- a/pear/PEAR/Config.php +++ b/pear/PEAR/Config.php @@ -399,12 +399,9 @@ class PEAR_Config extends PEAR if (!$fp) { return $this->raiseError("PEAR_Config::readConfigFile fopen('$file','r') failed"); } - $old_ini = ini_get("magic_quotes_runtime"); - ini_set("magic_quotes_runtime", false); $size = filesize($file); $contents = fread($fp, $size); fclose($fp); - ini_set("magic_quotes_runtime", $old_ini); $version = '0.1'; if (preg_match('/^#PEAR_Config\s+(\S+)\s+/si', $contents, $matches)) { $version = $matches[1]; diff --git a/pear/scripts/pear.in b/pear/scripts/pear.in index b7532d8a2a..c8a2ed333e 100644 --- a/pear/scripts/pear.in +++ b/pear/scripts/pear.in @@ -29,6 +29,7 @@ set_time_limit(0); ob_implicit_flush(true); ini_set('track_errors', true); ini_set('html_errors', false); +ini_set('magic_quotes_runtime', false); require_once 'PEAR.php'; require_once 'PEAR/Config.php';