⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pecl.php

📁 php-4.4.7学习linux时下载的源代码
💻 PHP
字号:
<?php/** * Channel Validator for the pecl.php.net channel * * PHP 4 and PHP 5 * * @category   pear * @package    PEAR * @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: PECL.php,v 1.1.2.2 2006/05/22 10:19:34 cellog Exp $ * @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 * @category   pear * @package    PEAR * @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    Release: @package_version@ * @link       http://pear.php.net/package/PEAR * @since      Class available since Release 1.4.0a5 */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 (strtolower($this->_packagexml->getPackage()) !=                  strtolower($this->_packagexml->getProvidesExtension())) {                $this->_addWarning('providesextension', 'package name "' .                    $this->_packagexml->getPackage() . '" is different from extension name "' .                    $this->_packagexml->getProvidesExtension() . '"');            }        }        return $ret;    }}?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -