On 19 June 2026 05:01:23 BST, "Paul M. Jones" <[email protected]> wrote:

>Please see the following PR against my own branch to see what it would look 
>like if added to the function-autoloading (mark 5) branch.
>
>  https://github.com/pmjones/php-src/pull/1
>
>Hypothetically this could be its own separate, precursor RFC and PR, but it's 
>small enough it might go well here.


Interesting that it's such a small change. My only comment would be that if we 
do add this, let's please not use the word "strict"; it tends to lead to 
incorrect assumptions like "strict is always better".

Some rather verbose names were suggested during the discussion of 
https://wiki.php.net/rfc/use_global_elements

My preference would be a 3-way switch, e.g. 

declare(function_const_ns='global');
declare(function_const_ns='current');
declare(function_const_ns='fallback');

I note that previous RFC was fairly comprehensively rejected, though, so you'd 
have to dig into why to figure out if it's worth resurrecting.


Rowan Tommins
[IMSoP]

Reply via email to