RE: [Zend Engine 2] Re: [PHP-DEV] Re: Type hints revisited [IllegalArgumentException instead of E_ERROR]
| From: | Harald Radi | Date: | Mon, 31 Mar 2003 22:58:57 +0000 |
| Subject: | RE: [Zend Engine 2] Re: [PHP-DEV] Re: Type hints revisited [IllegalArgumentException instead of E_ERROR] | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-556@lists.php.net to get a copy of this message | ||
> WF>> Please don't have it bail out unless there is some kind of
> WF>> function_parameters_are_ok() API so that careful
> programmers can work
> WF>> around this issue.
>
> Careful programmers should know interface of called functions
> and never
> call them with parameters that do not match the interface. :)
you mean they should check them with 'is interface' before calling a
typehinted function ?!
harald