Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19095 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21092 invoked by uid 1010); 19 Sep 2005 21:37:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 21076 invoked from network); 19 Sep 2005 21:37:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Sep 2005 21:37:40 -0000 X-Host-Fingerprint: 195.28.69.139 mail.jobtion.com Linux 2.4 w/o timestamps Received: from ([195.28.69.139:38911] helo=sparky.datcon.sk) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 4B/59-43379-3AF2F234 for ; Mon, 19 Sep 2005 17:37:39 -0400 Received: from localhost (localhost [127.0.0.1]) by sparky.datcon.sk (Postfix) with ESMTP id 10F4124AB1 for ; Mon, 19 Sep 2005 23:37:35 +0200 (CEST) Received: from sparky.datcon.sk ([127.0.0.1]) by localhost (sparky [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22904-03 for ; Mon, 19 Sep 2005 23:37:34 +0200 (CEST) Received: from [85.216.149.81] (chello085216149081.chello.sk [85.216.149.81]) by sparky.datcon.sk (Postfix) with ESMTP id DD89F24AAE for ; Mon, 19 Sep 2005 23:37:34 +0200 (CEST) Message-ID: <432F303C.9040808@kmit.sk> Date: Mon, 19 Sep 2005 23:40:12 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.11) Gecko/20050917 X-Accept-Language: sk, en MIME-Version: 1.0 To: internals References: <004901c5bd61$0c044150$0100a8c0@pc07653> In-Reply-To: <004901c5bd61$0c044150$0100a8c0@pc07653> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at datcon.sk Subject: Re: [PHP-DEV] generate a notice for bogus function calls From: ondrej@kmit.sk (=?UTF-8?B?T25kcmVqIEl2YW5pxI0=?=) Nuno Lopes wrote: > 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. No, stupid output! Generating E_NOTICE is not a good idea. You don't need to create functions with variable arguments count like printf()? -- Ondrej Ivanic (ondrej@kmit.sk)