Re: Warning in wrong parameter
| From: | Leon Atkinson | Date: | Tue, 24 Dec 2002 22:57:12 +0000 |
| Subject: | Re: Warning in wrong parameter | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-92815@lists.php.net to get a copy of this message | ||
> Is there any possibility that
> PHP return me a warning with the message (e.g.) "Warning parameter
> number for [function name] in [page.php] line [line number]" ???
If you really need this behavior, do something like
assert('func_num_args() == 1');
That should generate the warning you describe if assertions are turned on.
Leon