Warning in wrong parameter
| From: | michel 'ziobudda' morelli | Date: | Tue, 24 Dec 2002 20:16:23 +0000 |
| Subject: | Warning in wrong parameter | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-92811@lists.php.net to get a copy of this message | ||
Hi, I have installed php 4.2.1 and error_reporting = ALL.
I write a function called foo() that accept only 1 parameter.
Now if I write:
<?
$result = foo("bar");
?>
All is ok.
If I write:
<?
$result = foo("bar","bar2");
?>
All is ok, but for me that is not OK because my function foo() accept
only 1 parameters and no 2 o 3 or more. 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]" ???
Tnx in advance. And sorry for this stupid question and for my bad
english.
Happy "all".
--
Ti desidero, voglio trascinarti a letto, piegarti, farti sudare,
prenderti da farti incendiare il corpo...
Ti aspetto: Tua, Influenza.
--
Michel <ZioBudda> Morelli michel@ziobudda.net
ICQ UIN: 58351764 PR of Linux in Italy
http://www.ziobudda.net http://www.phpdev.it