svn: /pear2/Pyrus/trunk/src/Pyrus/ XMLParser.php

From: Date: Wed, 10 Mar 2010 22:46:18 +0000
Subject: svn: /pear2/Pyrus/trunk/src/Pyrus/ XMLParser.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-9289@lists.php.net to get a copy of this message
dufuz Wed, 10 Mar 2010 22:46:18 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=296046 Log: XMLReader throws a PHP Warning on top of returning false if it can't open a file. Silencing it and be more explicit that we are looking for false in case of a failure. Changed paths: U pear2/Pyrus/trunk/src/Pyrus/XMLParser.php Modified: pear2/Pyrus/trunk/src/Pyrus/XMLParser.php =================================================================== --- pear2/Pyrus/trunk/src/Pyrus/XMLParser.php 2010-03-10 22:36:21 UTC (rev 296045) +++ pear2/Pyrus/trunk/src/Pyrus/XMLParser.php 2010-03-10 22:46:18 UTC (rev 296046) @@ -73,7 +73,7 @@ */ function parse($file, $schema = false) { - if (!$this->reader->open($file)) { + if (@$this->reader->open($file) === false) { throw new XMLParser\Exception('Cannot open ' . $file . ' for parsing'); }

« previous php.pear.core (#9289) next »