Re: [PHP-DEV] Autoloader invariant

2010-12-30 Thread Stas Malyshev
Hi! When I am inside the body of an autoloader function, am I allowed to assume the invariant that the class passed to the autoloader function does not exist? Last time I checked, PHP was still single-threaded, Generally, yes, though nothing prevents somebody from calling the same function e

[PHP-DEV] Autoloader invariant

2010-12-30 Thread Edward Z. Yang
Hello all, long time no see. When I am inside the body of an autoloader function, am I allowed to assume the invariant that the class passed to the autoloader function does not exist? Last time I checked, PHP was still single-threaded, so this invariant being broken would be quite suprising to me