Hi,
Although this is not as hot as references or Unicode stuff, I would like to
discuss a new topic.
Currently PHP accepts more parameters to a function than the required.
In English:
<?
function a($b) {}
a(1,2,3);
?>
PHP accepts this and generates no errors. My purpose is to start generating
an E_NOTICE, just like we do for not yet initialized variables.
This behaviour has already beaten me for a couple of times, because I had a
program with functions with similar names, but with different number of
parameters. The result for calling the wrong function? A nice infinite loop
:)
I hope this is not hard to implement (maybe in the parser, to get the errors
on compile time - for performance).
Regards,
Nuno
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php