From: Stanislav Malyshev Date: Sun, 10 Sep 2000 11:24:45 +0000 (+0000) Subject: Allow require_once to take expressions, just like require X-Git-Tag: php-4.0.3RC1~205 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e7402d7a5094258e784dee3f9930e9325e7f0b8d;p=php Allow require_once to take expressions, just like require --- diff --git a/Zend/zend-parser.y b/Zend/zend-parser.y index b1a31fa0f4..0917f7d555 100644 --- a/Zend/zend-parser.y +++ b/Zend/zend-parser.y @@ -717,7 +717,7 @@ internal_functions_in_yacc: | T_INCLUDE_ONCE expr { do_include_or_eval(ZEND_INCLUDE_ONCE, &$$, &$2 CLS_CC); } | T_EVAL '(' expr ')' { do_include_or_eval(ZEND_EVAL, &$$, &$3 CLS_CC); } | T_REQUIRE expr { do_include_or_eval(ZEND_REQUIRE, &$$, &$2 CLS_CC); } - | T_REQUIRE_ONCE use_filename { do_include_or_eval(ZEND_REQUIRE_ONCE, &$$, &$2 CLS_CC); } + | T_REQUIRE_ONCE expr { do_include_or_eval(ZEND_REQUIRE_ONCE, &$$, &$2 CLS_CC); } ;