Re: RFC Draft - Improved Autoloading
| From: | Aleksander Machniak | Date: | Tue, 07 Jul 2026 05:50:58 +0000 |
| Subject: | Re: RFC Draft - Improved Autoloading | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-131785@lists.php.net to get a copy of this message | ||
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. Henceyou (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.comnamespace B;This will result in a call to the autoloader with arguments (null, "B")