cvs: php4 /pear/PEAR Config.php

From: Date: Tue, 28 May 2002 00:31:04 +0000
Subject: cvs: php4 /pear/PEAR Config.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4176@lists.php.net to get a copy of this message
ssb Mon May 27 20:31:04 2002 EDT Modified files: /php4/pear/PEAR Config.php Log: * disable magic_quotes_runtime (what a broken concept!!) while reading config files Index: php4/pear/PEAR/Config.php diff -u php4/pear/PEAR/Config.php:1.26 php4/pear/PEAR/Config.php:1.27 --- php4/pear/PEAR/Config.php:1.26 Mon May 27 20:01:19 2002 +++ php4/pear/PEAR/Config.php Mon May 27 20:31:04 2002 @@ -16,7 +16,7 @@ // | Author: Stig Bakken <ssb@fast.no> | // +----------------------------------------------------------------------+ // -// $Id: Config.php,v 1.26 2002/05/28 00:01:19 ssb Exp $ +// $Id: Config.php,v 1.27 2002/05/28 00:31:04 ssb Exp $ require_once 'PEAR.php'; @@ -399,8 +399,12 @@ 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];

« previous php.pear.cvs (#4176) next »