Skip to content

Commit fbab0c3

Browse files
committed
Fix PHP 7 build
1 parent 76b1469 commit fbab0c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ast.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ static void ast_fill_children_ht(HashTable *ht, zend_ast *ast, zend_long version
405405
ast_to_zval(&child_zv, child->child[0], version);
406406
#else
407407
} else if (version >= 35 && ast->kind == ZEND_AST_ARRAY
408-
&& ast->attr == ZEND_ARRAY_SYNTAX_LIST) {
408+
&& ast->attr == ZEND_ARRAY_SYNTAX_LIST && child != NULL) {
409409
/* Emulate ARRAY_ELEM list */
410410
zval ch0, ch1;
411411
ast_to_zval(&ch0, child, version);

0 commit comments

Comments
 (0)