Re: generate a notice for bogus function calls

From: Date: Mon, 19 Sep 2005 22:55:53 +0000
Subject: Re: generate a notice for bogus function calls
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-19097@lists.php.net to get a copy of this message
Nuno Lopes schrieb: > 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. This is expected behaviour in PHP! Since PHP does not offer true overloading of method headers (multiple methods or functions with the same name but different parameter lists) this is badly needed. AllOLLi ____________ Bender: "We're making beer. I'm the brewery." Dwight: "I heard alcohol makes you stupid." Fry: "No I'm... doesn't." [Futurama 312]

« previous php.internals (#19097) next »