Re: Re: PHP5 silently throwing exceptions???

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux