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

Reply via email to