cvs: pear /PHP_CompatInfo CompatInfo.php

From: Date: Thu, 15 Jun 2006 21:28:05 +0000
Subject: cvs: pear /PHP_CompatInfo CompatInfo.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-40737@lists.php.net to get a copy of this message
farell Thu Jun 15 21:28:05 2006 UTC Modified files: /pear/PHP_CompatInfo CompatInfo.php Log: more PEAR CS see : http://pear.php.net/manual/en/standards.naming.php#AEN1190 http://cvs.php.net/viewcvs.cgi/pear/PHP_CompatInfo/CompatInfo.php?r1=1.19&r2=1.20&diff_format=u Index: pear/PHP_CompatInfo/CompatInfo.php diff -u pear/PHP_CompatInfo/CompatInfo.php:1.19 pear/PHP_CompatInfo/CompatInfo.php:1.20 --- pear/PHP_CompatInfo/CompatInfo.php:1.19 Tue Jun 6 21:58:32 2006 +++ pear/PHP_CompatInfo/CompatInfo.php Thu Jun 15 21:28:04 2006 @@ -14,7 +14,7 @@ * @package PHP_CompatInfo * @author Davey Shafik <davey@php.net> * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: CompatInfo.php,v 1.19 2006/06/06 21:58:32 farell Exp $ + * @version CVS: $Id: CompatInfo.php,v 1.20 2006/06/15 21:28:04 farell Exp $ * @link http://pear.php.net/package/PHP_CompatInfo * @since File available since Release 0.7.0 */ @@ -380,11 +380,11 @@ } } if (is_array($tokens[$i])) { - if (in_array(token_name($tokens[$i][0]), $GLOBALS['const'])) { + if (in_array(token_name($tokens[$i][0]), $GLOBALS['_PHP_COMPATINFO_CONST'])) { $constants[] = token_name($tokens[$i][0]); } } else { - if (in_array($tokens[$i][0], $GLOBALS['const'])) { + if (in_array($tokens[$i][0], $GLOBALS['_PHP_COMPATINFO_CONST'])) { $constants[] = $tokens[$i][0]; } } @@ -398,22 +398,22 @@ $options['ignore_functions'] = array(); } foreach($functions as $name) { - if (isset($GLOBALS['funcs'][$name]) && (!in_array($name, $udf) && + if (isset($GLOBALS['_PHP_COMPATINFO_FUNCS'][$name]) && (!in_array($name, $udf) && (!in_array($name, $options['ignore_functions'])))) { if ($options['debug'] == true) { - $functions_version[$GLOBALS['funcs'][$name]['init']][] = array( + $functions_version[$GLOBALS['_PHP_COMPATINFO_FUNCS'][$name]['init']][] = array( 'function' => $name, - 'extension' => $GLOBALS['funcs'][$name]['ext'] + 'extension' => $GLOBALS['_PHP_COMPATINFO_FUNCS'][$name]['ext'] ); } - $cmp = version_compare($latest_version, $GLOBALS['funcs'][$name]['init']); + $cmp = version_compare($latest_version, $GLOBALS['_PHP_COMPATINFO_FUNCS'][$name]['init']); if ((int)$cmp === -1) { - $latest_version = $GLOBALS['funcs'][$name]['init']; + $latest_version = $GLOBALS['_PHP_COMPATINFO_FUNCS'][$name]['init']; } - if ((!empty($GLOBALS['funcs'][$name]['ext'])) && - ($GLOBALS['funcs'][$name]['ext'] != 'ext_standard') && - ($GLOBALS['funcs'][$name]['ext'] != 'zend')) { - $extension = substr($GLOBALS['funcs'][$name]['ext'], 4); + if ((!empty($GLOBALS['_PHP_COMPATINFO_FUNCS'][$name]['ext'])) && + ($GLOBALS['_PHP_COMPATINFO_FUNCS'][$name]['ext'] != 'ext_standard') && + ($GLOBALS['_PHP_COMPATINFO_FUNCS'][$name]['ext'] != 'zend')) { + $extension = substr($GLOBALS['_PHP_COMPATINFO_FUNCS'][$name]['ext'], 4); if ($extension{0} != '_') { if (!in_array($extension, $extensions)) { $extensions[] = $extension; @@ -430,12 +430,12 @@ $constants = array_unique($constants); foreach($constants as $constant) { - $cmp = version_compare($latest_version, $GLOBALS['const'][$constant]['init']); + $cmp = version_compare($latest_version, $GLOBALS['_PHP_COMPATINFO_CONST'][$constant]['init']); if ((int)$cmp === -1) { - $latest_version = $GLOBALS['const'][$constant]['init']; + $latest_version = $GLOBALS['_PHP_COMPATINFO_CONST'][$constant]['init']; } - if (!in_array($GLOBALS['const'][$constant]['name'], $constant_names)) { - $constant_names[] = $GLOBALS['const'][$constant]['name']; + if (!in_array($GLOBALS['_PHP_COMPATINFO_CONST'][$constant]['name'], $constant_names)) { + $constant_names[] = $GLOBALS['_PHP_COMPATINFO_CONST'][$constant]['name']; } }

« previous php.pear.cvs (#40737) next »