Skip to content

Commit 8b49121

Browse files
committed
Fix tests
1 parent 7af0d0b commit 8b49121

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6996,7 +6996,7 @@ static void zend_compile_try(zend_ast *ast) /* {{{ */
69966996
if (var_name) {
69976997
opline->result_type = var_name ? IS_CV : IS_UNUSED;
69986998
opline->result.var = var_name ? lookup_cv(var_name) : -1;
6999-
} else if (var_ast->kind == ZEND_AST_ZNODE) {
6999+
} else if (var_ast && var_ast->kind == ZEND_AST_ZNODE) {
70007000
znode *node = zend_ast_get_znode(var_ast);
70017001
ZEND_ASSERT(node->op_type == IS_TMP_VAR);
70027002
opline->result_type = IS_TMP_VAR;

0 commit comments

Comments
 (0)