Skip to content

Commit 10b4294

Browse files
committed
ZEND_DIM_ALTERNATIVE_SYNTAX has been removed
Removed by php/php-src#14974 Offset access syntax with curly braces is no longer supported The syntax $x{'offset'} should be $x['offset'] in PHP 7.4+
1 parent 4c5efd5 commit 10b4294

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ast.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,7 +1515,9 @@ PHP_MINIT_FUNCTION(ast) {
15151515
ast_register_flag_constant("ARRAY_SYNTAX_LONG", ZEND_ARRAY_SYNTAX_LONG);
15161516
ast_register_flag_constant("ARRAY_SYNTAX_SHORT", ZEND_ARRAY_SYNTAX_SHORT);
15171517

1518+
#if PHP_VERSION_ID < 80400
15181519
ast_register_flag_constant("DIM_ALTERNATIVE_SYNTAX", ZEND_DIM_ALTERNATIVE_SYNTAX);
1520+
#endif
15191521

15201522
ast_register_flag_constant("PARENTHESIZED_CONDITIONAL", ZEND_PARENTHESIZED_CONDITIONAL);
15211523

0 commit comments

Comments
 (0)