cvs: php4 /pear/PEAR Config.php /pear/scripts pear.in
| From: | Stig Bakken | Date: | Tue, 28 May 2002 00:45:24 +0000 |
| Subject: | cvs: php4 /pear/PEAR Config.php /pear/scripts pear.in | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4179@lists.php.net to get a copy of this message | ||
ssb Mon May 27 20:45:24 2002 EDT
Modified files:
/php4/pear/PEAR Config.php
/php4/pear/scripts pear.in
Log:
* disable *&$^*#@ runtime ^@#*&$@ magical ^*!@@!! quoting
Index: php4/pear/PEAR/Config.php
diff -u php4/pear/PEAR/Config.php:1.27 php4/pear/PEAR/Config.php:1.28
--- php4/pear/PEAR/Config.php:1.27 Mon May 27 20:31:04 2002
+++ php4/pear/PEAR/Config.php Mon May 27 20:45:18 2002
@@ -16,7 +16,7 @@
// | Author: Stig Bakken <ssb@fast.no> |
// +----------------------------------------------------------------------+
//
-// $Id: Config.php,v 1.27 2002/05/28 00:31:04 ssb Exp $
+// $Id: Config.php,v 1.28 2002/05/28 00:45:18 ssb Exp $
require_once 'PEAR.php';
@@ -399,12 +399,9 @@
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: php4/pear/scripts/pear.in
diff -u php4/pear/scripts/pear.in:1.55 php4/pear/scripts/pear.in:1.56
--- php4/pear/scripts/pear.in:1.55 Sun May 26 15:42:13 2002
+++ php4/pear/scripts/pear.in Mon May 27 20:45:19 2002
@@ -19,7 +19,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: pear.in,v 1.55 2002/05/26 19:42:13 cox Exp $
+// $Id: pear.in,v 1.56 2002/05/28 00:45:19 ssb Exp $
/**
* @nodep Gtk
@@ -29,6 +29,7 @@
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';