mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix use-of-uninitialized-value with exception on deprecated const access
Closes GH-18478
This commit is contained in:
parent
f1d259a07b
commit
59056937bf
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue