Re: Re: PHP5 silently throwing exceptions???
| From: | Jason Barnett | Date: | Mon, 17 Jan 2005 16:22:42 +0000 |
| Subject: | Re: Re: PHP5 silently throwing exceptions??? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-206562@lists.php.net to get a copy of this message | ||
Jochem Maas wrote:
Jason Barnett wrote: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=2Gerard 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