Skip to content

Commit 9abe9c7

Browse files
committed
Fix uninitialized zval
1 parent dda7924 commit 9abe9c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Zend/zend_execute.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3617,6 +3617,7 @@ ZEND_API zval* zend_assign_to_typed_ref_and_result(zval *variable_ptr, zval *ori
36173617
}
36183618
} else {
36193619
zval_ptr_dtor_nogc(&value);
3620+
ZVAL_UNDEF(result_variable_ptr);
36203621
}
36213622
if (value_type & (IS_VAR|IS_TMP_VAR)) {
36223623
if (UNEXPECTED(ref)) {

0 commit comments

Comments
 (0)