]> granicus.if.org Git - php/commitdiff
Fix __METHOD__ (noticed by Davey Sahfik)
authorMarcus Boerger <helly@php.net>
Thu, 26 Feb 2004 19:59:49 +0000 (19:59 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 26 Feb 2004 19:59:49 +0000 (19:59 +0000)
Zend/zend_language_parser.y
Zend/zend_language_scanner.l

index adfdd5d5396005eaadf529d9af44ea769baf00f3..59b0262e20aeec1a6bbe7ec5aaed04c55e7ef203 100644 (file)
 %token T_LIST
 %token T_ARRAY
 %token T_CLASS_C
+%token T_METHOD_C
 %token T_FUNC_C
 %token T_LINE
 %token T_FILE
@@ -667,6 +668,7 @@ common_scalar:
        |       T_LINE                                          { $$ = $1; }
        |       T_FILE                                          { $$ = $1; }
        |       T_CLASS_C                                       { $$ = $1; }
+       |       T_METHOD_C                                      { $$ = $1; }
        |       T_FUNC_C                                        { $$ = $1; }
 ;
 
index fe6b17d9f90a1abefa3e7d857a56aa33d3fe9bec..7d3467010ee41615dea5915bb1b1ec1067ba227b 100644 (file)
@@ -1285,7 +1285,7 @@ NEWLINE ("\r"|"\n"|"\r\n")
                );
        zendlval->value.str.len = strlen(zendlval->value.str.val);
        zendlval->type = IS_STRING;
-       return T_CLASS_C;
+       return T_METHOD_C;
 }
 
 <ST_IN_SCRIPTING>"__LINE__" {