[php-src] master: zend_language_parser: Remove unused backup_lex_pos (GH-23224)

From: Date: Wed, 12 Aug 2026 13:46:35 +0000
Subject: [php-src] master: zend_language_parser: Remove unused backup_lex_pos (GH-23224)
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-140677@lists.php.net to get a copy of this message
Author: Yudai Takada (ydah) Committer: GitHub (web-flow) Pusher: iluuu1994 Date: 2026-08-12T15:46:32+02:00 Commit: https://github.com/php/php-src/commit/e36a123efbeda2472e890f64db05a713471dee7d Raw diff: https://github.com/php/php-src/commit/e36a123efbeda2472e890f64db05a713471dee7d.diff zend_language_parser: Remove unused backup_lex_pos (GH-23224) Changed paths: M Zend/zend_language_parser.y Diff: diff --git a/Zend/zend_language_parser.y b/Zend/zend_language_parser.y index b4dda00404ea..2d9d7b4a23d6 100644 --- a/Zend/zend_language_parser.y +++ b/Zend/zend_language_parser.y @@ -292,7 +292,6 @@ static YYSIZE_T zend_yytnamerr(char*, const char*); %type <num> method_modifiers class_const_modifiers member_modifier optional_cpp_modifiers %type <num> class_modifiers class_modifier anonymous_class_modifiers anonymous_class_modifiers_optional use_type backup_fn_flags -%type <ptr> backup_lex_pos %type <str> backup_doc_comment %type <ident> reserved_non_modifiers semi_reserved @@ -1400,9 +1399,9 @@ inline_function: NULL, $5, $7, $11, $8, NULL); CG(extra_fn_flags) = $9; } | fn returns_ref backup_doc_comment '(' parameter_list ')' return_type - T_DOUBLE_ARROW backup_fn_flags backup_lex_pos expr backup_fn_flags - { $$ = zend_ast_create_decl(ZEND_AST_ARROW_FUNC, $2 | $12, $1, $3, - NULL, $5, NULL, $11, $7, NULL); + T_DOUBLE_ARROW backup_fn_flags expr backup_fn_flags + { $$ = zend_ast_create_decl(ZEND_AST_ARROW_FUNC, $2 | $11, $1, $3, + NULL, $5, NULL, $10, $7, NULL); CG(extra_fn_flags) = $9; } ; @@ -1422,10 +1421,6 @@ backup_fn_flags: %prec PREC_ARROW_FUNCTION %empty { $$ = CG(extra_fn_flags); CG(extra_fn_flags) = 0; } ; -backup_lex_pos: - %empty { $$ = LANG_SCNG(yy_text); } -; - returns_ref: %empty { $$ = 0; } | ampersand { $$ = ZEND_ACC_RETURN_REFERENCE; }

« previous php.cvs (#140677) next »