Re: [Zend Engine 2] Type hints revisited [IllegalArgumentException instead of E_ERROR]

From: Date: Thu, 27 Mar 2003 17:04:51 +0000
Subject: Re: [Zend Engine 2] Type hints revisited [IllegalArgumentException instead of E_ERROR]
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-372@lists.php.net to get a copy of this message
On Thursday, March 27, 2003, at 11:58 AM, Andi Gutmans wrote:
At 05:16 PM 3/27/2003 +0100, Timm Friebe wrote:
I've implemented an additional feature for type hints that will throw an exception instead of bailing out in case an incorrect type is passed.
I don't see any major advantage in doing this. I think we should keep PHP error handling the same as in PHP 4 and leave exceptions in user-land. Otherwise we'll end up having an unmanageable hybrid because there's no way we're going to change the error-handling of the existing internal functions. The majority of our user base is still functional, please don't forget this. I feel that people here tend to forget that.
I think this can(all) be handled with a custom zend_error_cb anyway (in an extension - so that it's available only if you want it.) Looks really simple to implement too. George

« previous php.internals (#372) next »