[GIT-PULLS] [php-src] PR #22736: Implement declare(strict_namespace=1) to disable global name fallback
[email protected] (pmjones)
| Newsgroups | php.git-pulls |
|---|---|
| Message-ID | <[email protected]> |
Pull Request: https://github.com/php/php-src/pull/22736 Author: pmjones This introduces a file-scoped `declare` that disables the global fallback on function and constant names. Unqualified functions and constants in a namespace resolve to the current namespace only when `strict_namespace=1`. The special constants `true`/`false`/`null` still resolve correctly. This is a compile-time change only; no VM, JIT, or runtime changes. RFC forthcoming.