Re: generate a notice for bogus function calls
| From: | Derick Rethans | Date: | Tue, 20 Sep 2005 09:26:10 +0000 |
| Subject: | Re: generate a notice for bogus function calls | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-19102@lists.php.net to get a copy of this message | ||
On Mon, 19 Sep 2005, Nuno Lopes wrote:
> Hi,
>
> Although this is not as hot as references or Unicode stuff, I would like to
> discuss a new topic.
> Currently PHP accepts more parameters to a function than the required.
> In English:
> <?
> function a($b) {}
> a(1,2,3);
> ?>
>
> PHP accepts this and generates no errors. My purpose is to start generating an
> E_NOTICE, just like we do for not yet initialized variables.
No way, we have func_get_arg() for this, do to some kind of overloading.
Derick
--
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org