]> granicus.if.org Git - php/commitdiff
* disable *&$^*#@ runtime ^@#*&$@ magical ^*!@@!! quoting
authorStig Bakken <ssb@php.net>
Tue, 28 May 2002 00:45:19 +0000 (00:45 +0000)
committerStig Bakken <ssb@php.net>
Tue, 28 May 2002 00:45:19 +0000 (00:45 +0000)
pear/PEAR/Config.php
pear/scripts/pear.in

index 26917fa79a564361a0568d13016d7150fab7644c..d07aeaae28610c5d2beb6a31a621f1bb8e43a40d 100644 (file)
@@ -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];
index b7532d8a2a2022de0cb1fe50462d92020ffbb67f..c8a2ed333e74f05b450f39737bafc98c4991fb41 100644 (file)
@@ -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';