Re: Re: [PHP-DEV] __autoload & exceptions

2003-10-24 Thread Andi Gutmans
At 07:17 AM 10/24/2003 -0700, Eduardo R. Maciel wrote: Hi, I agree with Dan´s opinion. Watching from a point of view of a developer working on PHP Object Oriented aplications, libs, frameworks, etc, there is no sense on things like this. Or it IS object oriented or it IS NOT. Partiality alway

Re: Re: [PHP-DEV] __autoload & exceptions

2003-10-24 Thread Eduardo R. Maciel
Hi, I agree with Dan´s opinion. Watching from a point of view of a developer working on PHP Object Oriented aplications, libs, frameworks, etc, there is no sense on things like this. Or it IS object oriented or it IS NOT. Partiality always run into complications. And that was what happen on P

Re: [PHP-DEV] __autoload & exceptions

2003-10-12 Thread Dan Cox
Hi Andi- Yes, that explains things and makes perfect sense if you are just writing your own web application. Now, consider the new __autoload functionality from a PEAR or other large API/library developer standpoint. The new __autoload functionality lets us: - Keep library usage/installation s

Re: [PHP-DEV] __autoload & exceptions

2003-10-12 Thread Andi Gutmans
Dan, __autoload() is the last chance to load a class which is needed before erroring out and terminating the script. By design, if you don't take advantage of this last chance the script will error out. Therefore, throwing an exception inside the __autoload() function should not be catchable b

Re: [PHP-DEV] __autoload & exceptions

2003-10-12 Thread Marcus Börger
Hello Dan, Sunday, October 12, 2003, 7:34:59 AM, you wrote: > This behaviour isn't a show stopper. It's just the inconsistency that > bugs me. yes! > I'm left wondering what other ways the engine might handle my exceptions > that > I might not expect, like... > try { > function __autoload($

Re: [PHP-DEV] __autoload & exceptions

2003-10-11 Thread Dan Cox
Marcus- Here are just some interesting observations with __autoload() and exceptions: Currently, an empty php file with just "throw new Exception();" will dump out an error like so: *Fatal error*: Uncaught exception 'exception' with message 'Unknown exception' in /server/http/sites/db.wep.net/