Re: [PHP-DEV] RFC Draft - Improved Autoloading

Aleksander Machniak <[email protected]>
Newsgroups gmane.comp.php.devel
Message-ID <[email protected]>
On 7.07.2026 05:06, Michael Morris wrote:
> PHP will also call the autoloader when it encounters the namespace 
> keyword referencing a namespace it hasn't seen before. Hence
> 
> ```
> namespace B;
> ```
> This will result in a call to the autoloader with arguments (null, "B")

you (and the current implementation's) callback defines 1st argument as 
string. Changing it to accept null will be a big BC break you missed. 
Maybe an empty string would solve that.

-- 
Aleksander Machniak
Kolab Groupware Developer        [https://kolab.org]
Roundcube Webmail Developer  [https://roundcube.net]
----------------------------------------------------
PGP: 19359DC1 # Blog: https://kolabian.wordpress.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.