From: Zeev Suraski Date: Sun, 22 Jun 2003 10:12:25 +0000 (+0000) Subject: Simplify X-Git-Tag: RELEASE_1_0_2~101 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f263aecc8e86a3347ebfd4ad2be6dc27aff5534d;p=php Simplify --- diff --git a/Zend/zend_language_parser.y b/Zend/zend_language_parser.y index 716e5568a0..5d8a9d28e5 100644 --- a/Zend/zend_language_parser.y +++ b/Zend/zend_language_parser.y @@ -598,15 +598,10 @@ fully_qualified_class_name: ; dynamic_class_name: - static_or_variable_string { zend_do_fetch_class(&$$, &$1 TSRMLS_CC); } + T_STRING { zend_do_fetch_class(&$$, &$1 TSRMLS_CC); } + | r_variable_without_static_member { zend_do_fetch_class(&$$, &$1 TSRMLS_CC); } ; -static_or_variable_string: - T_STRING { $$ = $1; } - | r_variable_without_static_member { $$ = $1; } -; - - exit_expr: /* empty */ { memset(&$$, 0, sizeof(znode)); $$.op_type = IS_UNUSED; } | '(' ')' { memset(&$$, 0, sizeof(znode)); $$.op_type = IS_UNUSED; }