cvs: pear-core /PEAR PackageFile.php
| From: | Greg Beaver | Date: | Wed, 06 Apr 2005 01:05:39 +0000 |
| Subject: | cvs: pear-core /PEAR PackageFile.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-30954@lists.php.net to get a copy of this message | ||
cellog Tue Apr 5 21:05:39 2005 EDT
Modified files:
/pear-core/PEAR PackageFile.php
Log:
fix fatal error on unknown package.xml version
http://cvs.php.net/diff.php/pear-core/PEAR/PackageFile.php?r1=1.19&r2=1.20&ty=u
Index: pear-core/PEAR/PackageFile.php
diff -u pear-core/PEAR/PackageFile.php:1.19 pear-core/PEAR/PackageFile.php:1.20
--- pear-core/PEAR/PackageFile.php:1.19 Sun Mar 20 20:31:46 2005
+++ pear-core/PEAR/PackageFile.php Tue Apr 5 21:05:36 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.19 2005/03/21 01:31:46 cellog Exp $
+ * @version CVS: $Id: PackageFile.php,v 1.20 2005/04/06 01:05:36 cellog Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 1.4.0a1
*/
@@ -196,6 +196,9 @@
'" has unsupported package.xml <package> version "' .
$packageversion[1] . '"');
return $a;
} else {
+ if (!class_exists('PEAR_ErrorStack')) {
+ require_once 'PEAR/ErrorStack.php';
+ }
PEAR_ErrorStack::staticPush('PEAR_PackageFile',
PEAR_PACKAGEFILE_ERROR_NO_PACKAGEVERSION,
'warning', array('xml' => $data), 'package.xml
"' . $file .