Re: Feature or bug?

From: Date: Wed, 31 Oct 2001 14:30:33 +0000
Subject: Re: Feature or bug?
Groups: php.dev php.lang 
Request: Send a blank email to php-dev+get-69416@lists.php.net to get a copy of this message
Yasuo wrote: > PHP does not report any errors for too many parameters for user > defined functions, both normal function and class method :( > > Is PHP designed not to report error for this? > Too many parameters for a function is obvious error and any > language MUST report error for this, unless variable length of > parameters is allowed. IMO php.lang is for language documumentation. Use php-dev for this kind of issues. And yes, that is intended. You need it when you do you own argument handling: function printall() { foreach (function_get_args() as $arg) { echo "$arg\n"; } } --Jeroen

« previous php.dev (#69416) next »