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] 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