cvs: pear-core /PEAR PackageFile.php

From: Date: Sun, 14 Aug 2005 07:58:16 +0000
Subject: cvs: pear-core /PEAR PackageFile.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-3526@lists.php.net to get a copy of this message
cellog Sun Aug 14 03:58:16 2005 EDT Modified files: /pear-core/PEAR PackageFile.php Log: unfinished warning output, make it crash-proof as well http://cvs.php.net/diff.php/pear-core/PEAR/PackageFile.php?r1=1.28&r2=1.29&ty=u Index: pear-core/PEAR/PackageFile.php diff -u pear-core/PEAR/PackageFile.php:1.28 pear-core/PEAR/PackageFile.php:1.29 --- pear-core/PEAR/PackageFile.php:1.28 Sun Aug 14 02:49:19 2005 +++ pear-core/PEAR/PackageFile.php Sun Aug 14 03:58:16 2005 @@ -15,7 +15,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: PackageFile.php,v 1.28 2005/08/14 06:49:19 cellog Exp $ + * @version CVS: $Id: PackageFile.php,v 1.29 2005/08/14 07:58:16 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 1.4.0a1 */ @@ -180,9 +180,13 @@ } return $pf; } else { - if (true || $this->_config->get('verbose') > 0) { - foreach ($pf->getValidationWarnings(false) as $warning) { - $this->_logger->log(0, 'ERROR: ' . $warning['message']); + if ($this->_config->get('verbose') > 0) { + if ($this->_logger) { + if ($pf->getValidationWarnings(false)) { + foreach ($pf->getValidationWarnings(false) as $warning) { + $this->_logger->log(0, 'ERROR: ' . $warning['message']); + } + } } } $a = PEAR::raiseError('Parsing of package.xml from file "' . $file . '" failed',

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