Skip to content

Commit 4465b37

Browse files
committed
Fix zend_get_zval_ptr()
1 parent 79128b3 commit 4465b37

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Zend/zend_execute.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3077,16 +3077,20 @@ ZEND_API zval *zend_get_zval_ptr(int op_type, const znode_op *node, const zend_e
30773077
case IS_CONST:
30783078
ret = EX_CONSTANT(*node);
30793079
*should_free = NULL;
3080+
break;
30803081
case IS_TMP_VAR:
30813082
case IS_VAR:
30823083
ret = EX_VAR(node->var);
30833084
*should_free = ret;
3085+
break;
30843086
case IS_CV:
30853087
ret = EX_VAR(node->var);
30863088
*should_free = NULL;
3089+
break;
30873090
default:
30883091
ret = NULL;
30893092
*should_free = ret;
3093+
break;
30903094
}
30913095
return ret;
30923096
}

0 commit comments

Comments
 (0)