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

📄 v1.php

📁 php-4.4.7学习linux时下载的源代码
💻 PHP
📖 第 1 页 / 共 4 页
字号:
<?php/** * PEAR_PackageFile_v1, package.xml version 1.0 * * PHP versions 4 and 5 * * LICENSE: This source file is subject to version 3.0 of the PHP license * that is available through the world-wide-web at the following URI: * http://www.php.net/license/3_0.txt.  If you did not receive a copy of * the PHP License and are unable to obtain it through the web, please * send a note to license@php.net so we can mail you a copy immediately. * * @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: v1.php,v 1.1.2.2 2006/05/22 10:19:33 cellog Exp $ * @link       http://pear.php.net/package/PEAR * @since      File available since Release 1.4.0a1 *//** * For error handling */require_once 'PEAR/ErrorStack.php';/** * Error code if parsing is attempted with no xml extension */define('PEAR_PACKAGEFILE_ERROR_NO_XML_EXT', 3);/** * Error code if creating the xml parser resource fails */define('PEAR_PACKAGEFILE_ERROR_CANT_MAKE_PARSER', 4);/** * Error code used for all sax xml parsing errors */define('PEAR_PACKAGEFILE_ERROR_PARSER_ERROR', 5);/** * Error code used when there is no name */define('PEAR_PACKAGEFILE_ERROR_NO_NAME', 6);/** * Error code when a package name is not valid */define('PEAR_PACKAGEFILE_ERROR_INVALID_NAME', 7);/** * Error code used when no summary is parsed */define('PEAR_PACKAGEFILE_ERROR_NO_SUMMARY', 8);/** * Error code for summaries that are more than 1 line */define('PEAR_PACKAGEFILE_ERROR_MULTILINE_SUMMARY', 9);/** * Error code used when no description is present */define('PEAR_PACKAGEFILE_ERROR_NO_DESCRIPTION', 10);/** * Error code used when no license is present */define('PEAR_PACKAGEFILE_ERROR_NO_LICENSE', 11);/** * Error code used when a <version> version number is not present */define('PEAR_PACKAGEFILE_ERROR_NO_VERSION', 12);/** * Error code used when a <version> version number is invalid */define('PEAR_PACKAGEFILE_ERROR_INVALID_VERSION', 13);/** * Error code when release state is missing */define('PEAR_PACKAGEFILE_ERROR_NO_STATE', 14);/** * Error code when release state is invalid */define('PEAR_PACKAGEFILE_ERROR_INVALID_STATE', 15);/** * Error code when release state is missing */define('PEAR_PACKAGEFILE_ERROR_NO_DATE', 16);/** * Error code when release state is invalid */define('PEAR_PACKAGEFILE_ERROR_INVALID_DATE', 17);/** * Error code when no release notes are found */define('PEAR_PACKAGEFILE_ERROR_NO_NOTES', 18);/** * Error code when no maintainers are found */define('PEAR_PACKAGEFILE_ERROR_NO_MAINTAINERS', 19);/** * Error code when a maintainer has no handle */define('PEAR_PACKAGEFILE_ERROR_NO_MAINTHANDLE', 20);/** * Error code when a maintainer has no handle */define('PEAR_PACKAGEFILE_ERROR_NO_MAINTROLE', 21);/** * Error code when a maintainer has no name */define('PEAR_PACKAGEFILE_ERROR_NO_MAINTNAME', 22);/** * Error code when a maintainer has no email */define('PEAR_PACKAGEFILE_ERROR_NO_MAINTEMAIL', 23);/** * Error code when a maintainer has no handle */define('PEAR_PACKAGEFILE_ERROR_INVALID_MAINTROLE', 24);/** * Error code when a dependency is not a PHP dependency, but has no name */define('PEAR_PACKAGEFILE_ERROR_NO_DEPNAME', 25);/** * Error code when a dependency has no type (pkg, php, etc.) */define('PEAR_PACKAGEFILE_ERROR_NO_DEPTYPE', 26);/** * Error code when a dependency has no relation (lt, ge, has, etc.) */define('PEAR_PACKAGEFILE_ERROR_NO_DEPREL', 27);/** * Error code when a dependency is not a 'has' relation, but has no version */define('PEAR_PACKAGEFILE_ERROR_NO_DEPVERSION', 28);/** * Error code when a dependency has an invalid relation */define('PEAR_PACKAGEFILE_ERROR_INVALID_DEPREL', 29);/** * Error code when a dependency has an invalid type */define('PEAR_PACKAGEFILE_ERROR_INVALID_DEPTYPE', 30);/** * Error code when a dependency has an invalid optional option */define('PEAR_PACKAGEFILE_ERROR_INVALID_DEPOPTIONAL', 31);/** * Error code when a dependency is a pkg dependency, and has an invalid package name */define('PEAR_PACKAGEFILE_ERROR_INVALID_DEPNAME', 32);/** * Error code when a dependency has a channel="foo" attribute, and foo is not a registered channel */define('PEAR_PACKAGEFILE_ERROR_UNKNOWN_DEPCHANNEL', 33);/** * Error code when rel="has" and version attribute is present. */define('PEAR_PACKAGEFILE_ERROR_DEPVERSION_IGNORED', 34);/** * Error code when type="php" and dependency name is present */define('PEAR_PACKAGEFILE_ERROR_DEPNAME_IGNORED', 35);/** * Error code when a configure option has no name */define('PEAR_PACKAGEFILE_ERROR_NO_CONFNAME', 36);/** * Error code when a configure option has no name */define('PEAR_PACKAGEFILE_ERROR_NO_CONFPROMPT', 37);/** * Error code when a file in the filelist has an invalid role */define('PEAR_PACKAGEFILE_ERROR_INVALID_FILEROLE', 38);/** * Error code when a file in the filelist has no role */define('PEAR_PACKAGEFILE_ERROR_NO_FILEROLE', 39);/** * Error code when analyzing a php source file that has parse errors */define('PEAR_PACKAGEFILE_ERROR_INVALID_PHPFILE', 40);/** * Error code when analyzing a php source file reveals a source element * without a package name prefix */define('PEAR_PACKAGEFILE_ERROR_NO_PNAME_PREFIX', 41);/** * Error code when an unknown channel is specified */define('PEAR_PACKAGEFILE_ERROR_UNKNOWN_CHANNEL', 42);/** * Error code when no files are found in the filelist */define('PEAR_PACKAGEFILE_ERROR_NO_FILES', 43);/** * Error code when a file is not valid php according to _analyzeSourceCode() */define('PEAR_PACKAGEFILE_ERROR_INVALID_FILE', 44);/** * Error code when the channel validator returns an error or warning */define('PEAR_PACKAGEFILE_ERROR_CHANNELVAL', 45);/** * Error code when a php5 package is packaged in php4 (analysis doesn't work) */define('PEAR_PACKAGEFILE_ERROR_PHP5', 46);/** * Error code when a file is listed in package.xml but does not exist */define('PEAR_PACKAGEFILE_ERROR_FILE_NOTFOUND', 47);/** * Error code when a <dep type="php" rel="not"... is encountered (use rel="ne") */define('PEAR_PACKAGEFILE_PHP_NO_NOT', 48);/** * Error code when a package.xml contains non-ISO-8859-1 characters */define('PEAR_PACKAGEFILE_ERROR_NON_ISO_CHARS', 49);/** * Error code when a dependency is not a 'has' relation, but has no version */define('PEAR_PACKAGEFILE_ERROR_NO_DEPPHPVERSION', 50);/** * Error code when a package has no lead developer */define('PEAR_PACKAGEFILE_ERROR_NO_LEAD', 51);/** * Error code when a filename begins with "." */define('PEAR_PACKAGEFILE_ERROR_INVALID_FILENAME', 52);/** * package.xml encapsulator * @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.0a1 */class PEAR_PackageFile_v1{    /**     * @access private     * @var PEAR_ErrorStack     * @access private     */    var $_stack;    /**     * A registry object, used to access the package name validation regex for non-standard channels     * @var PEAR_Registry     * @access private     */    var $_registry;    /**     * An object that contains a log method that matches PEAR_Common::log's signature     * @var object     * @access private     */    var $_logger;    /**     * Parsed package information     * @var array     * @access private     */    var $_packageInfo;    /**     * path to package.xml     * @var string     * @access private     */    var $_packageFile;    /**     * path to package .tgz or false if this is a local/extracted package.xml     * @var string     * @access private     */    var $_archiveFile;    /**     * @var int     * @access private     */    var $_isValid = 0;    /**     * Determines whether this packagefile was initialized only with partial package info     *     * If this package file was constructed via parsing REST, it will only contain     *     * - package name     * - channel name     * - dependencies      * @var boolean     * @access private     */    var $_incomplete = true;    /**     * @param bool determines whether to return a PEAR_Error object, or use the PEAR_ErrorStack     * @param string Name of Error Stack class to use.     */    function PEAR_PackageFile_v1()    {        $this->_stack = &new PEAR_ErrorStack('PEAR_PackageFile_v1');        $this->_stack->setErrorMessageTemplate($this->_getErrorMessage());        $this->_isValid = 0;    }    function installBinary($installer)    {        return false;    }    function isExtension($name)    {        return false;    }    function setConfig(&$config)    {        $this->_config = &$config;        $this->_registry = &$config->getRegistry();    }    function setRequestedGroup()    {        // placeholder    }    /**     * For saving in the registry.     *     * Set the last version that was installed     * @param string     */    function setLastInstalledVersion($version)    {        $this->_packageInfo['_lastversion'] = $version;    }    /**     * @return string|false     */    function getLastInstalledVersion()    {        if (isset($this->_packageInfo['_lastversion'])) {            return $this->_packageInfo['_lastversion'];        }

⌨️ 快捷键说明

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