Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19094 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14043 invoked by uid 1010); 19 Sep 2005 21:34:29 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 14025 invoked from network); 19 Sep 2005 21:34:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Sep 2005 21:34:29 -0000 X-Host-Fingerprint: 212.117.92.66 clx-ac2-66-2.westend.com Received: from ([212.117.92.66:16875] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 45/38-43379-5EE2F234 for ; Mon, 19 Sep 2005 17:34:29 -0400 Message-ID: <45.38.43379.5EE2F234@pb1.pair.com> To: internals@lists.php.net References: <004901c5bd61$0c044150$0100a8c0@pc07653> Date: Mon, 19 Sep 2005 23:34:22 +0200 Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response X-Posted-By: 212.117.92.66 Subject: Re: generate a notice for bogus function calls From: ts@siteartwork.de ("Thorsten Suckow-Homberg") > 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 would break BC (btw a hot topic nowadays, too ;) ) so this is not a good idea. Also it makes no sense in an oo-driven environment as long as there is no way of overloading methods. Best way to deal with this is to write gateway methods that delegate to the appropriate methods based on the passed in parameters.