Re: RFC: Type hinting revisited for PHP 5.3
| From: | Kalle Sommer Nielsen | Date: | Thu, 02 Jul 2009 13:42:09 +0000 |
| Subject: | Re: RFC: Type hinting revisited for PHP 5.3 | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-44649@lists.php.net to get a copy of this message | ||
2009/7/2 Robert Cummings <robert@interjinn.com>:
> Ionut G. Stan wrote:
> I think it should be E_WARNING with auto type juggling if bad data comes
> through. This way it behaves as normal PHP code does without special
> handling to mitigate a script failure. The log files will still alert you to
> the problem, and if you really want an exception handler then you still have
> that option.
It should be an E_RECOVERABLE, as it would make most sense, the error
is recoverable as it did not leave the engine in a state that it
cannot continue from a technical standpoint.
--
regrads,
Kalle Sommer Nielsen
kalle@php.net