We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7af0d0b commit 8b49121Copy full SHA for 8b49121
Zend/zend_compile.c
@@ -6996,7 +6996,7 @@ static void zend_compile_try(zend_ast *ast) /* {{{ */
6996
if (var_name) {
6997
opline->result_type = var_name ? IS_CV : IS_UNUSED;
6998
opline->result.var = var_name ? lookup_cv(var_name) : -1;
6999
- } else if (var_ast->kind == ZEND_AST_ZNODE) {
+ } else if (var_ast && var_ast->kind == ZEND_AST_ZNODE) {
7000
znode *node = zend_ast_get_znode(var_ast);
7001
ZEND_ASSERT(node->op_type == IS_TMP_VAR);
7002
opline->result_type = IS_TMP_VAR;
0 commit comments