Bearsampp 2026.9.23
Loading...
Searching...
No Matches
Common.php File Reference

Go to the source code of this file.

Data Structures

class  PEAR_Common

Namespaces

namespace  PEAR

Variables

 $GLOBALS ['_PEAR_Common_dependency_relations'] = array('has','eq','lt','le','gt','ge','not', 'ne')
 $GLOBALS ['_PEAR_Common_dependency_types'] = array('pkg','ext','php','prog','ldlib','rtlib','os','websrv','sapi')
 $GLOBALS ['_PEAR_Common_file_roles'] = array('php','ext','test','doc','data','src','script')
 $GLOBALS ['_PEAR_Common_maintainer_roles'] = array('lead','developer','contributor','helper')
 $GLOBALS ['_PEAR_Common_provide_types'] = array('ext', 'prog', 'class', 'function', 'feature', 'api')
 $GLOBALS ['_PEAR_Common_release_states'] = array('alpha','beta','stable','snapshot','devel')
 $GLOBALS ['_PEAR_Common_replacement_types'] = array('php-const', 'pear-config', 'package-info')
 $GLOBALS ['_PEAR_Common_script_phases'] = array('pre-install', 'post-install', 'pre-uninstall', 'post-uninstall', 'pre-build', 'post-build', 'pre-configure', 'post-configure', 'pre-setup', 'post-setup')
 $GLOBALS ['_PEAR_Common_tempfiles'] = array()
const _PEAR_CHANNELS_NAME_PREG '[A-Za-z][a-zA-Z0-9\.]+'
const _PEAR_CHANNELS_PACKAGE_PREG '(' ._PEAR_CHANNELS_SERVER_PREG . ')\/(' . _PEAR_COMMON_PACKAGE_NAME_PREG . ')'
const _PEAR_CHANNELS_SERVER_PREG '[a-zA-Z0-9\-]+(?:\.[a-zA-Z0-9\-]+)*(\/[a-zA-Z0-9\-]+)*'
const _PEAR_COMMON_CHANNEL_DOWNLOAD_PREG '(' . _PEAR_CHANNELS_NAME_PREG . ')::(' . _PEAR_COMMON_PACKAGE_NAME_PREG . ')(-([.0-9a-zA-Z]+))?'
const _PEAR_COMMON_PACKAGE_DOWNLOAD_PREG '(' . _PEAR_COMMON_PACKAGE_NAME_PREG . ')(-([.0-9a-zA-Z]+))?'
const _PEAR_COMMON_PACKAGE_NAME_PREG '[A-Za-z][a-zA-Z0-9_]+'
const _PEAR_COMMON_PACKAGE_VERSION_PREG '\d+(?:\.\d+)*(?:[a-zA-Z]+\d*)?'
const PEAR_CHANNELS_NAME_PREG '/^' . _PEAR_CHANNELS_NAME_PREG . '\\z/'
const PEAR_CHANNELS_PACKAGE_PREG '/^' . _PEAR_CHANNELS_PACKAGE_PREG . '\\z/i'
const PEAR_CHANNELS_SERVER_PREG '/^' . _PEAR_CHANNELS_SERVER_PREG . '\\z/i'
const PEAR_COMMON_CHANNEL_DOWNLOAD_PREG '/^' . _PEAR_COMMON_CHANNEL_DOWNLOAD_PREG . '\\z/'
const PEAR_COMMON_ERROR_INVALIDPHP 1
const PEAR_COMMON_PACKAGE_DOWNLOAD_PREG '/^' . _PEAR_COMMON_PACKAGE_DOWNLOAD_PREG . '\\z/'
const PEAR_COMMON_PACKAGE_NAME_PREG '/^' . _PEAR_COMMON_PACKAGE_NAME_PREG . '\\z/'
const PEAR_COMMON_PACKAGE_VERSION_PREG '/^' . _PEAR_COMMON_PACKAGE_VERSION_PREG . '\\z/i'

Variable Documentation

◆ $GLOBALS [1/9]

$GLOBALS[ '_PEAR_Common_dependency_relations'] = array('has','eq','lt','le','gt','ge','not', 'ne')

Definition at line 85 of file Common.php.

◆ $GLOBALS [2/9]

$GLOBALS[ '_PEAR_Common_dependency_types'] = array('pkg','ext','php','prog','ldlib','rtlib','os','websrv','sapi')

Definition at line 79 of file Common.php.

◆ $GLOBALS [3/9]

$GLOBALS[ '_PEAR_Common_file_roles'] = array('php','ext','test','doc','data','src','script')

Definition at line 91 of file Common.php.

◆ $GLOBALS [4/9]

$GLOBALS[ '_PEAR_Common_maintainer_roles'] = array('lead','developer','contributor','helper')

Definition at line 67 of file Common.php.

◆ $GLOBALS [5/9]

$GLOBALS[ '_PEAR_Common_provide_types'] = array('ext', 'prog', 'class', 'function', 'feature', 'api')

Definition at line 103 of file Common.php.

◆ $GLOBALS [6/9]

$GLOBALS[ '_PEAR_Common_release_states'] = array('alpha','beta','stable','snapshot','devel')

Definition at line 73 of file Common.php.

◆ $GLOBALS [7/9]

$GLOBALS[ '_PEAR_Common_replacement_types'] = array('php-const', 'pear-config', 'package-info')

Definition at line 97 of file Common.php.

◆ $GLOBALS [8/9]

$GLOBALS[ '_PEAR_Common_script_phases'] = array('pre-install', 'post-install', 'pre-uninstall', 'post-uninstall', 'pre-build', 'post-build', 'pre-configure', 'post-configure', 'pre-setup', 'post-setup')

Definition at line 109 of file Common.php.

◆ $GLOBALS [9/9]

◆ _PEAR_CHANNELS_NAME_PREG

const _PEAR_CHANNELS_NAME_PREG '[A-Za-z][a-zA-Z0-9\.]+'

Definition at line 41 of file Common.php.

◆ _PEAR_CHANNELS_PACKAGE_PREG

const _PEAR_CHANNELS_PACKAGE_PREG '(' ._PEAR_CHANNELS_SERVER_PREG . ')\/(' . _PEAR_COMMON_PACKAGE_NAME_PREG . ')'

Definition at line 49 of file Common.php.

◆ _PEAR_CHANNELS_SERVER_PREG

const _PEAR_CHANNELS_SERVER_PREG '[a-zA-Z0-9\-]+(?:\.[a-zA-Z0-9\-]+)*(\/[a-zA-Z0-9\-]+)*'

Definition at line 45 of file Common.php.

◆ _PEAR_COMMON_CHANNEL_DOWNLOAD_PREG

const _PEAR_COMMON_CHANNEL_DOWNLOAD_PREG '(' . _PEAR_CHANNELS_NAME_PREG . ')::(' . _PEAR_COMMON_PACKAGE_NAME_PREG . ')(-([.0-9a-zA-Z]+))?'

Definition at line 53 of file Common.php.

◆ _PEAR_COMMON_PACKAGE_DOWNLOAD_PREG

const _PEAR_COMMON_PACKAGE_DOWNLOAD_PREG '(' . _PEAR_COMMON_PACKAGE_NAME_PREG . ')(-([.0-9a-zA-Z]+))?'

Definition at line 37 of file Common.php.

◆ _PEAR_COMMON_PACKAGE_NAME_PREG

const _PEAR_COMMON_PACKAGE_NAME_PREG '[A-Za-z][a-zA-Z0-9_]+'

Definition at line 28 of file Common.php.

Referenced by PEAR_Validate\validGroupName().

◆ _PEAR_COMMON_PACKAGE_VERSION_PREG

const _PEAR_COMMON_PACKAGE_VERSION_PREG '\d+(?:\.\d+)*(?:[a-zA-Z]+\d*)?'

Definition at line 32 of file Common.php.

◆ PEAR_CHANNELS_NAME_PREG

const PEAR_CHANNELS_NAME_PREG '/^' . _PEAR_CHANNELS_NAME_PREG . '\\z/'

Definition at line 42 of file Common.php.

◆ PEAR_CHANNELS_PACKAGE_PREG

const PEAR_CHANNELS_PACKAGE_PREG '/^' . _PEAR_CHANNELS_PACKAGE_PREG . '\\z/i'

Definition at line 50 of file Common.php.

◆ PEAR_CHANNELS_SERVER_PREG

const PEAR_CHANNELS_SERVER_PREG '/^' . _PEAR_CHANNELS_SERVER_PREG . '\\z/i'

Definition at line 46 of file Common.php.

Referenced by PEAR_ChannelFile\validChannelServer().

◆ PEAR_COMMON_CHANNEL_DOWNLOAD_PREG

const PEAR_COMMON_CHANNEL_DOWNLOAD_PREG '/^' . _PEAR_COMMON_CHANNEL_DOWNLOAD_PREG . '\\z/'

Definition at line 54 of file Common.php.

◆ PEAR_COMMON_ERROR_INVALIDPHP

const PEAR_COMMON_ERROR_INVALIDPHP 1

Include error handling PEAR_Common error when an invalid PHP file is passed to PEAR_Common\analyzeSourceCode()

Definition at line 27 of file Common.php.

Referenced by PEAR_PackageFile_v2_Validator\analyzeSourceCode().

◆ PEAR_COMMON_PACKAGE_DOWNLOAD_PREG

const PEAR_COMMON_PACKAGE_DOWNLOAD_PREG '/^' . _PEAR_COMMON_PACKAGE_DOWNLOAD_PREG . '\\z/'

Definition at line 39 of file Common.php.

◆ PEAR_COMMON_PACKAGE_NAME_PREG

const PEAR_COMMON_PACKAGE_NAME_PREG '/^' . _PEAR_COMMON_PACKAGE_NAME_PREG . '\\z/'

Definition at line 29 of file Common.php.

Referenced by PEAR_Common\validPackageName().

◆ PEAR_COMMON_PACKAGE_VERSION_PREG

const PEAR_COMMON_PACKAGE_VERSION_PREG '/^' . _PEAR_COMMON_PACKAGE_VERSION_PREG . '\\z/i'

Definition at line 33 of file Common.php.

Referenced by PEAR_Common\validPackageVersion(), and PEAR_Validate\validVersion().