Posted by Jason Barnett on 01/17/05 18:22
Jochem Maas wrote:
> Jason Barnett wrote:
>
>> Gerard Samuel wrote:
>>
>
> ....
>
>>
>> I haven't checked the source on this one so I can't guarantee that
>> what I've said above is true, but I believe it to be true. Someone
>> correct me if I'm wrong (wouldn't be the first time ;)
>
>
> seems to me like you 'on the money'.
>
> I just wanted to add that IMHO use of __autoload() is over rated (too
> much magic is not alway a good thing) in the general case, i.e. use it
> for specific types of classes like dataobject classes that are generated
> on the fly - but don't use it as a catchall handler
I haven't tested this, but you make a good point. I would guess this
advice to be particularly good if you are using one of the opcode
cachers out there (since they may / may not be able to cache code for
files included via __autoload).
--
Teach a person to fish...
Ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html
PHP Manual: http://www.php.net/manual/en/index.php
php-general archives: http://marc.theaimsgroup.com/?l=php-general&w=2
Navigation:
[Reply to this message]
|