Skip to content

Commit 10b21c5

Browse files
committed
Fix uninitialized zval
1 parent dff3c64 commit 10b21c5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Zend/zend_execute.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3617,6 +3617,9 @@ 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+
if (result_variable_ptr) {
3621+
ZVAL_UNDEF(result_variable_ptr);
3622+
}
36203623
}
36213624
if (value_type & (IS_VAR|IS_TMP_VAR)) {
36223625
if (UNEXPECTED(ref)) {

0 commit comments

Comments
 (0)