Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19103 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46736 invoked by uid 1010); 20 Sep 2005 09:28:49 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 46719 invoked from network); 20 Sep 2005 09:28:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Sep 2005 09:28:49 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:33466] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id E5/FE-43379-056DF234 for ; Tue, 20 Sep 2005 05:28:48 -0400 Received: from [192.168.1.3] (dsl-082-083-238-054.arcor-ip.net [82.83.238.54]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id B8C71610282; Tue, 20 Sep 2005 11:52:04 +0200 (CEST) Date: Tue, 20 Sep 2005 11:28:45 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1833655417.20050920112845@marcus-boerger.de> To: Jani Taskinen Cc: Nuno Lopes , PHPdev In-Reply-To: References: <004901c5bd61$0c044150$0100a8c0@pc07653> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] generate a notice for bogus function calls From: helly@php.net (Marcus Boerger) Hello Jani, Tuesday, September 20, 2005, 11:19:28 AM, you wrote: > No way. Yep no way! PHP doesn't offer a '...' signature so we need it the way it is. And i don't think we want to have those '...' signatures. marcus > 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. >> 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 >> > -- > Donate @ > Disclaimer: Donating money may make me happier and friendlier for a limited period! Best regards, Marcus