From: Pierre Joye Date: Sun, 16 May 2004 21:00:24 +0000 (+0000) Subject: - T_WHITESPACE for the 1st test... X-Git-Tag: RELEASE_0_1~185 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e9576ecfa75c88364f70cc9321349105b6ae2fe;p=php - T_WHITESPACE for the 1st test... --- diff --git a/pear/PEAR/Common.php b/pear/PEAR/Common.php index edaf4c2104..4f0d8507f2 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 || $tokens[$i - 1][0] == T_STRING)) { + if (!($tokens[$i - 1][0] == T_WHITESPACE || $tokens[$i - 1][0] == T_STRING)) { PEAR::raiseError("Parser error: Invalid PHP file $file", PEAR_COMMON_ERROR_INVALIDPHP); return false;