Update to PEAR 1.7.2, Image_Canvas 0.3.1, Image_Color 1.0.3, Image_Graph 0.7.2, XML_Parser 1.3.1.
Removed PHP_Compat, and references to it. Removed ionCube/Zend/mmCache compatibility checks in test.php script. Changed minimum PHP requirement to 5.0 in test.php script.
This commit is contained in:
@@ -7,9 +7,9 @@
|
||||
* @category pear
|
||||
* @package PEAR
|
||||
* @author Greg Beaver <cellog@php.net>
|
||||
* @copyright 1997-2005 The PHP Group
|
||||
* @copyright 1997-2006 The PHP Group
|
||||
* @license http://www.php.net/license/3_0.txt PHP License 3.0
|
||||
* @version CVS: $Id: PECL.php,v 1.4 2005/09/23 04:53:01 cellog Exp $
|
||||
* @version CVS: $Id: PECL.php,v 1.9 2008/01/03 20:26:37 cellog Exp $
|
||||
* @link http://pear.php.net/package/PEAR
|
||||
* @since File available since Release 1.4.0a5
|
||||
*/
|
||||
@@ -22,9 +22,9 @@ require_once 'PEAR/Validate.php';
|
||||
* @category pear
|
||||
* @package PEAR
|
||||
* @author Greg Beaver <cellog@php.net>
|
||||
* @copyright 1997-2005 The PHP Group
|
||||
* @copyright 1997-2008 The PHP Group
|
||||
* @license http://www.php.net/license/3_0.txt PHP License 3.0
|
||||
* @version Release: 1.4.5
|
||||
* @version Release: 1.7.2
|
||||
* @link http://pear.php.net/package/PEAR
|
||||
* @since Class available since Release 1.4.0a5
|
||||
*/
|
||||
@@ -32,13 +32,24 @@ class PEAR_Validator_PECL extends PEAR_Validate
|
||||
{
|
||||
function validateVersion()
|
||||
{
|
||||
if ($this->_state == PEAR_VALIDATE_PACKAGING) {
|
||||
$version = $this->_packagexml->getVersion();
|
||||
$versioncomponents = explode('.', $version);
|
||||
$last = array_pop($versioncomponents);
|
||||
if (substr($last, 1, 2) == 'rc') {
|
||||
$this->_addFailure('version', 'Release Candidate versions must have ' .
|
||||
'upper-case RC, not lower-case rc');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function validatePackageName()
|
||||
{
|
||||
$ret = parent::validatePackageName();
|
||||
if ($this->_packagexml->getPackageType() == 'extsrc') {
|
||||
if ($this->_packagexml->getPackageType() == 'extsrc' ||
|
||||
$this->_packagexml->getPackageType() == 'zendextsrc') {
|
||||
if (strtolower($this->_packagexml->getPackage()) !=
|
||||
strtolower($this->_packagexml->getProvidesExtension())) {
|
||||
$this->_addWarning('providesextension', 'package name "' .
|
||||
|
Reference in New Issue
Block a user