Skip to content

Commit bdd49ef

Browse files
committed
Define compat constant for ZEND_BIND_REF
1 parent c62f10f commit bdd49ef

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ast.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
#define AST_PLUS 261
4343
#define AST_MINUS 262
4444

45-
/* Define some constants for PHP 7.0 */
45+
/* Define some compatibility constants */
4646
#if PHP_VERSION_ID < 70100
4747
# define IS_VOID 18
4848
# define IS_ITERABLE 19
@@ -52,6 +52,10 @@
5252
# define ZEND_ARRAY_SYNTAX_SHORT 3
5353
#endif
5454

55+
#if PHP_VERSION_ID < 70300
56+
# define ZEND_BIND_REF 1
57+
#endif
58+
5559
/* This contains state of the ast Node creator. */
5660
typedef struct ast_state_info {
5761
zend_long version;

0 commit comments

Comments
 (0)