Skip to content

Commit c81fe78

Browse files
committed
Fix PHP 7.0 build
1 parent ed51bba commit c81fe78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ast.c

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

45-
/* Define "void" for PHP 7.0 */
45+
/* Define some constants for PHP 7.0 */
4646
#if PHP_VERSION_ID < 70100
4747
# define IS_VOID 18
4848
# define IS_ITERABLE 19
49+
# define ZEND_TYPE_NULLABLE (1<<8)
4950
#endif
5051

5152
static inline void ast_update_property(zval *object, zend_string *name, zval *value, void **cache_slot) {

0 commit comments

Comments
 (0)