1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix use-of-uninitialized-value with exception on deprecated const access

Closes GH-18478
This commit is contained in:
Ilija Tovilo
2025-05-01 16:08:05 +02:00
parent f1d259a07b
commit 59056937bf

View File

@@ -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;
}
}