Skip to content

Commit d546378

Browse files
committed
Add compatibility define for ZEND_AST_EXIT
1 parent 66b258d commit d546378

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

php_ast.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ extern ast_str_globals str_globals;
9393
# define ZEND_AST_PARENT_PROPERTY_HOOK_CALL 0x2f8
9494
#endif
9595

96+
/* ZEND_AST_EXIT has been replaced with plain function call. */
97+
#if PHP_VERSION_ID >= 80500
98+
# define ZEND_AST_EXIT 0x1fd
99+
#endif
100+
96101
/* Pretend it still exists */
97102
# define ZEND_AST_LIST ((1 << (ZEND_AST_IS_LIST_SHIFT + 1)) - 1)
98103

0 commit comments

Comments
 (0)