Skip to content

Commit 5905693

Browse files
committed
Fix use-of-uninitialized-value with exception on deprecated const access
Closes GH-18478
1 parent f1d259a commit 5905693

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/opcache/jit/zend_jit_vm_helpers.c

+1
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ static zend_always_inline zend_constant* _zend_quick_get_constant(
380380
zend_deprecated_constant(c, c->name);
381381
CONST_UNPROTECT_RECURSION(c);
382382
if (EG(exception)) {
383+
ZVAL_UNDEF(EX_VAR(opline->result.var));
383384
return NULL;
384385
}
385386
}

0 commit comments

Comments
 (0)