Reply to Re: [PHP] Re: PHP5 silently throwing exceptions???

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация