Skip to content

Commit b8f5805

Browse files
committed
Fix build on PHP 7.1
1 parent 0996526 commit b8f5805

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
@@ -40,6 +40,11 @@ ZEND_EXTERN_MODULE_GLOBALS(ast)
4040
#define AST_NAME 2048
4141
#define AST_CLOSURE_VAR 2049
4242

43+
/* Pretend it still exists */
44+
#if PHP_VERSION_ID >= 70100
45+
# define ZEND_AST_LIST ((1 << (ZEND_AST_IS_LIST_SHIFT + 1)) - 1)
46+
#endif
47+
4348
extern const size_t ast_kinds_count;
4449
extern const zend_ast_kind ast_kinds[];
4550

0 commit comments

Comments
 (0)