Posted by Michael Fesser on 08/29/07 09:25
..oO(Phil Latio)
>I had heard of __autoload before but never realised what it did. I did a
>Google after getting the other reply and came across
>http://tobias-demuth.de/en/index.htm which looks interesting. Bit
>frustrating that the author hasn't included some examples and a bit more
>documentation because I don't fully understand how it supposed to work.
I had a look at the code - I wouldn't use it. The code is ugly and has a
really big bug: The function that searches the class tree is called on
every __autoload() call, which pretty much defeats the purpose of having
a cache file. It's easy to fix (just a missing 'else'), but nevertheless
that shouldn't happen.
Micha
Navigation:
[Reply to this message]
|