Re: Warning in wrong parameter

From: Date: Tue, 24 Dec 2002 21:20:47 +0000
Subject: Re: Warning in wrong parameter
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-92813@lists.php.net to get a copy of this message
AFAIK, it's supposed to allow for more parameters anyway ;) Eric "Michel 'Ziobudda' Morelli" <michel@ziobudda.net> wrote in message news:1040760990.1484.9.camel@localhost.localdomain... > 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 >

« previous php.dev (#92813) next »