At 01:06 PM 4/18/2004 -0400, Marc Richards wrote:
Andi Gutmans wrote:
At 12:57 PM 4/18/2004 -0400, Marc Richards wrote:
Does anyone know when __autoload() gets invoked? Is it during code compilation or at runtime? Has anyone tested __autoload() with a code cache like APC or ZPS?
Marc
> > It gets called at run-time and should work with code-caches. > > Andi >
So __autoload DOESN'T get any speed enhancements for a code cache then...?
Yes it should.
Andi
Ok so either I am confused or I am not being very clear with my questions. Let me try to be as explicit as possible.
Do the pages that get included by the __autoload() function get parsed and compiled along with the original page when using a code cache?
I assumed that since __autoload gets called at runtime, it would be too late for the caches to do their parsing, optimizing and caching.
On the other hand I was under the impression that include()d files get pulled in at compile time and therefore get parsed and cached.
Maybe I am confusing the meaning of runtime and compile time, but hopefully I have been clear enough that the source of my confusion will be obvious.
Marc
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php