Re: php5 beta

From: Date: Thu, 19 Jun 2003 20:07:45 +0000
Subject: Re: php5 beta
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-2447@lists.php.net to get a copy of this message
On Thursday, June 19, 2003, at 03:53 PM, Shane Caraveo wrote:
George Schlossnagle wrote:
try { function_call_to_some_preexisting_library_that_doesnt_do_exceptions() } catch(e) { }
The auto-generated exceptions can be of type InternalException extends Exception {}, and then the caller can decide whether or not they want to comply with the old method (just die on the spot), or to try and deal with the error. George
As long as it doesn't change the internal behavour of the function called, then I'm fine with it. That's all I was trying to say before. One example of which would be wrapping pear objects with an exception handler, and seeing that the regular (current) pear error handling works exactly as it did before.
My understanding of the proposal is that it is errors as exceptions, not warnings. errors are fatal in php4, so I don't see how it would change the behavior of any code block written for 4. George

« previous php.internals (#2447) next »