Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19097 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57807 invoked by uid 1010); 19 Sep 2005 22:56:01 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 57792 invoked from network); 19 Sep 2005 22:56:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Sep 2005 22:56:01 -0000 X-Host-Fingerprint: 84.60.13.220 dsl-084-060-013-220.arcor-ip.net Received: from ([84.60.13.220:26148] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id B8/5D-43379-0024F234 for ; Mon, 19 Sep 2005 18:56:00 -0400 Message-ID: To: internals@lists.php.net Date: Tue, 20 Sep 2005 00:55:53 +0200 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 References: <004901c5bd61$0c044150$0100a8c0@pc07653> In-Reply-To: <004901c5bd61$0c044150$0100a8c0@pc07653> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Posted-By: 84.60.13.220 Subject: Re: generate a notice for bogus function calls From: oliver.graetz@arcor.de (=?windows-1252?Q?Oliver_Gr=E4tz?=) 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]