Re: Warning in wrong parameter

From: Date: Tue, 24 Dec 2002 20:25:40 +0000
Subject: Re: Warning in wrong parameter
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-92812@lists.php.net to get a copy of this message
This is totally bogus, your error_reporting setting should be E_ALL, not ALL. michel 'ziobudda' morelli wrote:
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
-- Tal Peer tal@php.net

« previous php.dev (#92812) next »