cvs: pear /PHP_CompatInfo CompatInfo.php
[email protected] ("Laurent Laville") Mon, 12 May 2008 14:12:04 -0000
| Newsgroups | php.pear.cvs |
|---|---|
| Message-ID | <cvsfarell1210601524@cvsserver> |
farell Mon May 12 14:12:04 2008 UTC
Modified files:
/pear/PHP_CompatInfo CompatInfo.php
Log:
fix partially bug 13873 - only for function_exists() usage
http://cvs.php.net/viewvc.cgi/pear/PHP_CompatInfo/CompatInfo.php?r1=1.93&r2=1.94&diff_format=u
Index: pear/PHP_CompatInfo/CompatInfo.php
diff -u pear/PHP_CompatInfo/CompatInfo.php:1.93 pear/PHP_CompatInfo/CompatInfo.php:1.94
--- pear/PHP_CompatInfo/CompatInfo.php:1.93 Sat Apr 19 08:42:39 2008
+++ pear/PHP_CompatInfo/CompatInfo.php Mon May 12 14:12:04 2008
@@ -15,7 +15,7 @@
* @author Davey Shafik <[email protected]>
* @author Laurent Laville <[email protected]>
* @license http://www.php.net/license/3_01.txt PHP License 3.01
- * @version CVS: $Id: CompatInfo.php,v 1.93 2008/04/19 08:42:39 farell Exp $
+ * @version CVS: $Id: CompatInfo.php,v 1.94 2008/05/12 14:12:04 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @since File available since Release 0.7.0
*/
@@ -882,14 +882,15 @@
&& (strcasecmp($tokens[$i][1], 'function_exists') == 0)) {
$j = $i;
- while ((!$this->_isToken($tokens[$j],
- 'T_CONSTANT_ENCAPSED_STRING'))) {
+ while ((!$this->_isToken($tokens[$j], ')'))) {
+ if ($this->_isToken($tokens[$j], 'T_CONSTANT_ENCAPSED_STRING')) {
+ $t_string = $tokens[$j][1];
+ $t_string = trim($t_string, "'");
+ $t_string = trim($t_string, '"');
+ $function_exists[] = $t_string;
+ }
$j++;
}
- $t_string = $tokens[$j][1];
- $t_string = trim($t_string, "'");
- $t_string = trim($t_string, '"');
- $function_exists[] = $t_string;
}
// try to detect condition extension_loaded()
if ($this->_isToken($tokens[$i], 'T_STRING')