Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19096 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28272 invoked by uid 1010); 19 Sep 2005 21:45:53 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 28257 invoked from network); 19 Sep 2005 21:45:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Sep 2005 21:45:53 -0000 X-Host-Fingerprint: 212.55.154.25 relay5.ptmail.sapo.pt Linux 2.4/2.6 Received: from ([212.55.154.25:37024] helo=sapo.pt) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id D0/4A-43379-0913F234 for ; Mon, 19 Sep 2005 17:45:52 -0400 Received: (qmail 28525 invoked from network); 19 Sep 2005 21:45:49 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.152) by relay5 with SMTP; 19 Sep 2005 21:45:49 -0000 Received: (qmail 16258 invoked from network); 19 Sep 2005 21:45:48 -0000 X-AntiVirus: PTMail-AV 0.3.87 X-Virus-Status: Clean (0.17137 seconds) Received: from unknown (HELO pc07653) (nunoplopes@sapo.pt@[81.193.143.155]) (envelope-sender ) by mta2 (qmail-ldap-1.03) with SMTP for ; 19 Sep 2005 21:45:48 -0000 Message-ID: <007001c5bd63$7c58e620$0100a8c0@pc07653> To: "Ondrej Ivanic" , "internals" References: <004901c5bd61$0c044150$0100a8c0@pc07653> <432F303C.9040808@kmit.sk> Date: Mon, 19 Sep 2005 22:45:43 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response 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: Re: [PHP-DEV] generate a notice for bogus function calls From: nlopess@php.net ("Nuno Lopes") > 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()? No, I at least I think I've never created such a function. To be sincere, I've not even remembered of such functions when I was writing that e-mail :) So, I think my suggestion is bogus.. Although a special syntax (copied from C) could be introduced.. well maybe not.. Nuno