You are here: Re: [PHP] Re: PHP5 silently throwing exceptions??? « PHP « IT news, forums, messages
Re: [PHP] Re: PHP5 silently throwing exceptions???

Posted by Jochem Maas on 01/17/05 18:15

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

If you are using Exception classes and other 'framework' type classes
then I would suggest that a set of require_once statements in a global
file will:

a, suffice
b, make things more managable (i.e. includes are explicit)

if there is a speed issue with not using __autoload() then it might
still be worth only implementing __autoload() for general/all cases if:

a, sqeezing out a few microseconds is _really_ needed
b, your client (if you have one!) is willing to compensate you for the
countless hours of code profiling and speedmeasuring required to
increase speed thru optimization ;-)

>
>
>

 

Navigation:

[Reply to this 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

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