cvs: pear-core /PEAR/PackageFile/v2 Validator.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Sat, 22 Mar 2008 02:31:27 +0000 |
| Subject: | cvs: pear-core /PEAR/PackageFile/v2 Validator.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-7361@lists.php.net to get a copy of this message | ||
dufuz Sat Mar 22 02:31:27 2008 UTC
Modified files:
/pear-core/PEAR/PackageFile/v2 Validator.php
Log:
Bug #13059 Invalid release type causes Undefined Property notice
http://cvs.php.net/viewvc.cgi/pear-core/PEAR/PackageFile/v2/Validator.php?r1=1.103&r2=1.104&diff_format=u
Index: pear-core/PEAR/PackageFile/v2/Validator.php
diff -u pear-core/PEAR/PackageFile/v2/Validator.php:1.103
pear-core/PEAR/PackageFile/v2/Validator.php:1.104
--- pear-core/PEAR/PackageFile/v2/Validator.php:1.103 Thu Jan 3 20:26:37 2008
+++ pear-core/PEAR/PackageFile/v2/Validator.php Sat Mar 22 02:31:27 2008
@@ -15,7 +15,7 @@
* @author Greg Beaver <cellog@php.net>
* @copyright 1997-2008 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: Validator.php,v 1.103 2008/01/03 20:26:37 cellog Exp $
+ * @version CVS: $Id: Validator.php,v 1.104 2008/03/22 02:31:27 dufuz Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 1.4.0a8
*/
@@ -484,11 +484,11 @@
}
if (!in_array($this->_packageInfo['stability']['release'],
array('snapshot', 'devel', 'alpha',
'beta', 'stable'))) {
- $this->_invalidState('release',
$this->_packageinfo['stability']['release']);
+ $this->_invalidState('release',
$this->_packageInfo['stability']['release']);
}
if (!in_array($this->_packageInfo['stability']['api'],
array('devel', 'alpha', 'beta',
'stable'))) {
- $this->_invalidState('api',
$this->_packageinfo['stability']['api']);
+ $this->_invalidState('api',
$this->_packageInfo['stability']['api']);
}
}
}
@@ -1333,7 +1333,7 @@
}
if (is_array($rel) && array_key_exists('filelist', $rel)) {
if ($rel['filelist']) {
-
+
$this->_validateFilelist($rel['filelist'], true);
}
}
@@ -1964,7 +1964,7 @@
if (version_compare(zend_version(), '2.0', '<')) {
if (in_array(strtolower($data),
array('public', 'private', 'protected',
'abstract',
- 'interface', 'implements', 'throw')
+ 'interface', 'implements', 'throw')
)) {
$this->_stack->push(__FUNCTION__, 'warning', array(
'file' => $file),