Re: RE: Optional scalar type hinting

From: Date: Fri, 04 Jan 2008 09:02:46 +0000
Subject: Re: RE: Optional scalar type hinting
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14  Groups: php.internals 
Request: Send a blank email to internals+get-34397@lists.php.net to get a copy of this message
On Thu, 3 Jan 2008, Sam Barrow wrote: > It doesn't disable type conversion unless you specifically tell it to. > Plus the fact that if it issues an E_WARNING, your application will not > necessarily stop execution. Stop right here for a moment. Type hints currently throw an E_RECOVERABLE_ERROR, for obvious reasons. That means, that scalar type hints should do so as well - *without* auto conversion. We should not make this inconsistent or we really fucked it up. regards, Derick -- Derick Rethans http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org

« previous php.internals (#34397) next »