mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Remove bareword fallback for constants
Access to undefined constants will now always result in an Error exception being thrown. This required quite a few test changes, because there were many buggy tests that unintentionally used bareword fallback in combination with error suppression.
This commit is contained in:
parent
3d39479f4d
commit
aad39879f2
49 changed files with 375 additions and 470 deletions
|
@ -424,7 +424,7 @@ failure:
|
|||
return &c->value;
|
||||
}
|
||||
|
||||
if (!(flags & IS_CONSTANT_UNQUALIFIED)) {
|
||||
if (!(flags & IS_CONSTANT_UNQUALIFIED_IN_NAMESPACE)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue