Re: [PHP-DEV] Warning in wrong parameter

2002-12-24 Thread Leon Atkinson
> 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 describ

Re: [PHP-DEV] Re: Warning in wrong parameter

2002-12-24 Thread michel 'ziobudda' morelli
Il mar, 2002-12-24 alle 22:20, Eric Coleman ha scritto: > AFAIK, it's supposed to allow for more parameters anyway ;) Hmm... I have supposed it... however in C/C++ is the same (thing). Sorry for the stupid question and my best whishes with all my heart for a merry MERRY Christmas. -- Michel Mo

[PHP-DEV] Re: Warning in wrong parameter

2002-12-24 Thread Eric Coleman
AFAIK, it's supposed to allow for more parameters anyway ;) Eric "Michel 'Ziobudda' Morelli" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, I have installed php 4.2.1 and error_reporting = ALL. > > I write a function called foo() that accept only 1 paramet

Re: [PHP-DEV] Warning in wrong parameter

2002-12-24 Thread Tal Peer
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 wr

[PHP-DEV] Warning in wrong parameter

2002-12-24 Thread michel 'ziobudda' morelli
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: All is ok. If I write: 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 possibi

Re: [PHP-DEV] [PATCH] CLI and CGI defaults

2002-12-24 Thread Melvyn Sopacua
On Tue, 24 Dec 2002, Shane Caraveo wrote: SC>>> > But --enable-cli is now a useless switch, because: SC>>> > * if you don't specify it, cli is built SC>>> > * if you specify it, cli is built SC>>> > * if you don't specify it, cli is not installed SC>>> > * if you specify it, cli is not installed S

Re: [PHP-DEV] [PATCH] CLI and CGI defaults

2002-12-24 Thread Shane Caraveo
But --enable-cli is now a useless switch, because: * if you don't specify it, cli is built * if you specify it, cli is built * if you don't specify it, cli is not installed * if you specify it, cli is not installed Only --disable-cgi (--enable-cli still makes no difference) will install cli on

Re: [PHP-DEV] [PATCH] CLI and CGI defaults

2002-12-24 Thread Melvyn Sopacua
On Tue, 24 Dec 2002, Andrei Zmievski wrote: AZ>>> On Mon, 23 Dec 2002, Melvyn Sopacua wrote: AZ>>> > Hi, AZ>>> > AZ>>> > the current behavior of cli/cgi defaults, is not really intuitive, allthough correctly mentioned in the NEWS entry. AZ>>> > AZ>>> > Attached is a very simple patch, that will

Re: [PHP-DEV] [PATCH] CLI and CGI defaults

2002-12-24 Thread Andrei Zmievski
On Mon, 23 Dec 2002, Melvyn Sopacua wrote: > Hi, > > the current behavior of cli/cgi defaults, is not really intuitive, allthough >correctly mentioned in the NEWS entry. > > Attached is a very simple patch, that will resolve that issue. > > Specifically: > if you specify --enable-cli and don't

[PHP-DEV] CVS Account Request: naveed

2002-12-24 Thread Naveed Afzal
Maintaining the documentation Maintaining www.php.net I have a past two years experience of web designing so I can maintain PHP.net and also documentation. -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php