Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19093 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7638 invoked by uid 1010); 19 Sep 2005 21:28:26 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 7622 invoked from network); 19 Sep 2005 21:28:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Sep 2005 21:28:26 -0000 X-Host-Fingerprint: 212.55.154.22 relay2.ptmail.sapo.pt Linux 2.4/2.6 Received: from ([212.55.154.22:34672] helo=sapo.pt) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id ED/27-43379-97D2F234 for ; Mon, 19 Sep 2005 17:28:25 -0400 Received: (qmail 25591 invoked from network); 19 Sep 2005 21:28:19 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.154) by relay2 with SMTP; 19 Sep 2005 21:28:19 -0000 Received: (qmail 6838 invoked from network); 19 Sep 2005 21:28:19 -0000 X-AntiVirus: PTMail-AV 0.3.87 X-Virus-Status: Clean (0.17486 seconds) Received: from unknown (HELO pc07653) (nunoplopes@sapo.pt@[81.193.143.155]) (envelope-sender ) by mta4 (qmail-ldap-1.03) with SMTP for ; 19 Sep 2005 21:28:19 -0000 Message-ID: <004901c5bd61$0c044150$0100a8c0@pc07653> To: "PHPdev" Date: Mon, 19 Sep 2005 22:28:15 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Subject: generate a notice for bogus function calls From: nlopess@php.net ("Nuno Lopes") 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: 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 behaviour has already beaten me for a couple of times, because I had a program with functions with similar names, but with different number of parameters. The result for calling the wrong function? A nice infinite loop :) I hope this is not hard to implement (maybe in the parser, to get the errors on compile time - for performance). Regards, Nuno