Re: type hinting throwing a fatal error

From: Date: Mon, 22 Aug 2005 16:53:29 +0000
Subject: Re: type hinting throwing a fatal error
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-18260@lists.php.net to get a copy of this message
On Mon, 22 Aug 2005, Andrei Zmievski wrote:

> I thought I made that patch a while ago?
> 
> zend.c:
>                if (retval) {
>                     if (Z_TYPE_P(retval) == IS_BOOL && Z_LVAL_P(retval) == 0)
> {
>                         zend_error_cb(type, error_filename, error_lineno,
> format, args);
>                     }
>                     zval_ptr_dtor(&retval);
>                 }

Ah, great. I didn't know this. This doesn't solve the problem of the 
catchable fatals though. I've a patch for that ready, just need to do 
some testing.

Derick

-- 
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org


Thread (125 messages)

« previous php.internals (#18260) next »