cvs: pear /XML_Parser Parser.php

From: Date: Tue, 05 Oct 2004 19:24:45 +0000
Subject: cvs: pear /XML_Parser Parser.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-24627@lists.php.net to get a copy of this message
schst Tue Oct 5 15:24:45 2004 EDT Modified files: /pear/XML_Parser Parser.php Log: do not set allow_url_fopen when it could not be set the first time. http://cvs.php.net/diff.php/pear/XML_Parser/Parser.php?r1=1.16&r2=1.17&ty=u Index: pear/XML_Parser/Parser.php diff -u pear/XML_Parser/Parser.php:1.16 pear/XML_Parser/Parser.php:1.17 --- pear/XML_Parser/Parser.php:1.16 Tue Oct 5 15:23:34 2004 +++ pear/XML_Parser/Parser.php Tue Oct 5 15:24:45 2004 @@ -18,7 +18,7 @@ // | Stephan Schmidt <schst@php-tools.net> | // +----------------------------------------------------------------------+ // -// $Id: Parser.php,v 1.16 2004/10/05 19:23:34 schst Exp $ +// $Id: Parser.php,v 1.17 2004/10/05 19:24:45 schst Exp $ /** * XML Parser class. @@ -384,7 +384,9 @@ } $fp = @fopen($file, 'rb'); - ini_set('allow_url_fopen', $oldVal); + if ($oldVal !== false) { + ini_set('allow_url_fopen', $oldVal); + } if (is_resource($fp)) { $this->fp = $fp; return $fp;

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