Re: Re: [Zend Engine 2] Type hints revisited [IllegalArgumentException instead of E_ERROR]
| From: | Derick Rethans | Date: | Fri, 28 Mar 2003 14:05:19 +0000 |
| Subject: | Re: Re: [Zend Engine 2] Type hints revisited [IllegalArgumentException instead of E_ERROR] | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-422@lists.php.net to get a copy of this message | ||
On Fri, 28 Mar 2003, Andi Gutmans wrote:
> At 10:04 AM 3/28/2003 +0000, Wez Furlong wrote:
> >The point is that we don't raise an E_ERROR when you pass the wrong type
> >of parameter to any of the other PHP functions.
>
> Really? I think that some functions which use resources do error out if you
> pass a wrong type (although I'm not quite sure), but there's no reason it
> shouldn't.
None should, the goal was that extensions should at max raise E_WARNING
if there is no real need to abort the script. AFAIK this was implemented
almost everywhere.
Derick
--
"my other box is your windows PC"
-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
PHP Magazine - PHP Magazine for Professionals http://php-mag.net/
-------------------------------------------------------------------------