Re: Type hinting

From: Date: Thu, 03 Jun 2010 14:29:30 +0000
Subject: Re: Type hinting
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-48609@lists.php.net to get a copy of this message
Hi Folks: On Sat, May 29, 2010 at 08:34:26PM +0300, Zeev Suraski wrote: > > IMHO we shouldn't be getting to any kind of fatal error/exception > situation, which is why I like the idea of auto-conversion plus E_STRICT > in the 'weird conversion' scenarios E_STRICT doesn't cut it. So many applications/servers out there run with E_STRICT off. Then there is the multitudes that have _all_ error handling turned off. It seems the weird conversions need to be handled differently. One possibility is creating a new function called something like set_type_hint_failure_handler() where developers can name a userland function to deal with the conversion problems. Another possibility is creating a new error level. Thanks, --Dan (Pardon me if this has been raised already. I don't know when I will be able to read the rest of the thread, so need to put this out there before the E_STRICT idea goes to too far...) -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

« previous php.internals (#48609) next »