Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19102 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42249 invoked by uid 1010); 20 Sep 2005 09:26:24 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 42232 invoked from network); 20 Sep 2005 09:26:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Sep 2005 09:26:23 -0000 X-Host-Fingerprint: 82.94.239.5 jdi.jdi-ict.nl Linux 2.5 (sometimes 2.4) (4) Received: from ([82.94.239.5:41973] helo=jdi.jdi-ict.nl) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id F3/2E-43379-CB5DF234 for ; Tue, 20 Sep 2005 05:26:20 -0400 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id j8K9QEIf000517; Tue, 20 Sep 2005 11:26:14 +0200 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id j8K9QAOb000508; Tue, 20 Sep 2005 11:26:11 +0200 Date: Tue, 20 Sep 2005 11:26:10 +0200 (CEST) X-X-Sender: derick@localhost To: Nuno Lopes cc: PHPdev In-Reply-To: <004901c5bd61$0c044150$0100a8c0@pc07653> Message-ID: References: <004901c5bd61$0c044150$0100a8c0@pc07653> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at jdi-ict.nl Subject: Re: [PHP-DEV] generate a notice for bogus function calls From: derick@php.net (Derick Rethans) On Mon, 19 Sep 2005, Nuno Lopes wrote: > Hi, > > Although this is not as hot as references or Unicode stuff, I would like to > discuss a new topic. > 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. My purpose is to start generating an > E_NOTICE, just like we do for not yet initialized variables. No way, we have func_get_arg() for this, do to some kind of overloading. Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org