summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Bakken <ssb@php.net>2002-05-28 00:45:19 +0000
committerStig Bakken <ssb@php.net>2002-05-28 00:45:19 +0000
commit599cede43e801b90c3325adee19b80cfeb81f3ae (patch)
tree1e1c71e9c143c04a9cc7cc80dbc24b9c111b48cb
parent0adf7e25303d211682658aada08b4d0d1115712f (diff)
downloadphp-git-599cede43e801b90c3325adee19b80cfeb81f3ae.tar.gz
* disable *&$^*#@ runtime ^@#*&$@ magical ^*!@@!! quoting
-rw-r--r--pear/PEAR/Config.php3
-rw-r--r--pear/scripts/pear.in1
2 files changed, 1 insertions, 3 deletions
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';