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