Re: Return value of convert_to_*()

From: Date: Wed, 27 Dec 2006 21:23:56 +0000
Subject: Re: Return value of convert_to_*()
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-27207@lists.php.net to get a copy of this message
On 12/28/2006 12:12 AM, Andrei Zmievski wrote:
It's perfectly legal to do it in 5.2 and I don't see why PHP6 is different. IMO it's same as changing the E_RECOVERABLE to E_ERROR - users won't have any way to "workaround" it, even though this was the original intention of E_RECOVERABLE.
It is not the same. E_ERROR stops execution. Returning FAILURE from convert_to_string() is simply a flag that lets calling code know what happened.
Failure in zend_parse_parameters() means that function itself will not be executed, which is a major change in behaviour and I don't think we really want it. -- Wbr, Antony Dovgal

« previous php.internals (#27207) next »