summaryrefslogtreecommitdiff
path: root/pear/PEAR
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2004-05-16 20:55:29 +0000
committerPierre Joye <pajoye@php.net>2004-05-16 20:55:29 +0000
commita937ae4762aed0d6a48b226082a997416c93a273 (patch)
tree559008e9c5e4f40041655078386797e262ec1224 /pear/PEAR
parent77c75e786b5ddac1839c86206b200754ec320aef (diff)
downloadphp-git-a937ae4762aed0d6a48b226082a997416c93a273.tar.gz
- PHP allows spaces before :: (parent :: foo(); )
Nota bene, requires another change to really check the syntax: loop back to the first non white space element and valid it (parent, string or var)
Diffstat (limited to 'pear/PEAR')
-rw-r--r--pear/PEAR/Common.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/pear/PEAR/Common.php b/pear/PEAR/Common.php
index 6e11a0d027..edaf4c2104 100644
--- a/pear/PEAR/Common.php
+++ b/pear/PEAR/Common.php
@@ -1407,7 +1407,7 @@ class PEAR_Common extends PEAR
}
continue 2;
case T_DOUBLE_COLON:
- if ($tokens[$i - 1][0] != T_STRING) {
+ if (!($tokens[$i - 1][0] == T_STRING || $tokens[$i - 1][0] == T_STRING)) {
PEAR::raiseError("Parser error: Invalid PHP file $file",
PEAR_COMMON_ERROR_INVALIDPHP);
return false;