Source for file PECL.php
Documentation is available at PECL.php
* Channel Validator for the pecl.php.net channel
* @author Greg Beaver <cellog@php.net>
* @copyright 1997-2006 The PHP Group
* @license http://opensource.org/licenses/bsd-license.php New BSD License
* @version CVS: $Id: PECL.php 313023 2011-07-06 19:17:11Z dufuz $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 1.4.0a5
* This is the parent class for all validators
require_once 'PEAR/Validate.php';
* Channel Validator for the pecl.php.net channel
* @author Greg Beaver <cellog@php.net>
* @copyright 1997-2009 The Authors
* @license http://opensource.org/licenses/bsd-license.php New BSD License
* @version Release: 1.9.4
* @link http://pear.php.net/package/PEAR
* @since Class available since Release 1.4.0a5
$version = $this->_packagexml->getVersion ();
$versioncomponents = explode('.', $version);
if (substr($last, 1 , 2 ) == 'rc') {
$this->_addFailure ('version', 'Release Candidate versions must have ' .
'upper-case RC, not lower-case rc');
if ($this->_packagexml->getPackageType () == 'extsrc' ||
$this->_packagexml->getPackageType () == 'zendextsrc') {
if (strtolower($this->_packagexml->getPackage ()) !=
strtolower($this->_packagexml->getProvidesExtension ())) {
$this->_addWarning ('providesextension', 'package name "' .
$this->_packagexml->getPackage () . '" is different from extension name "' .
$this->_packagexml->getProvidesExtension () . '"');
Documentation generated on Wed, 06 Jul 2011 23:31:06 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.
|