From 59056937bff9b8e36d460391e770fa1fcfa032dd Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Thu, 1 May 2025 16:08:05 +0200 Subject: [PATCH] Fix use-of-uninitialized-value with exception on deprecated const access Closes GH-18478 --- ext/opcache/jit/zend_jit_vm_helpers.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/opcache/jit/zend_jit_vm_helpers.c b/ext/opcache/jit/zend_jit_vm_helpers.c index d39a5c44be8..4348fbd53ad 100644 --- a/ext/opcache/jit/zend_jit_vm_helpers.c +++ b/ext/opcache/jit/zend_jit_vm_helpers.c @@ -380,6 +380,7 @@ static zend_always_inline zend_constant* _zend_quick_get_constant( zend_deprecated_constant(c, c->name); CONST_UNPROTECT_RECURSION(c); if (EG(exception)) { + ZVAL_UNDEF(EX_VAR(opline->result.var)); return NULL; } }