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
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php