Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49465 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37629 invoked from network); 19 Aug 2010 18:29:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Aug 2010 18:29:57 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 74.125.82.170 mail-wy0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:64741] helo=mail-wy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 28/C5-00261-3287D6C4 for ; Thu, 19 Aug 2010 14:29:56 -0400 Received: by wye20 with SMTP id 20so2569560wye.29 for ; Thu, 19 Aug 2010 11:29:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=QL8UzEuckjat/E6DfDB9H1D9omERGbXgIF43ehKVAiM=; b=sp4YIr4pZWDZ846/jtP8e+5JiJnTYVvJf3ZKlE0yqSNAhGi/Ya2WQCFTLvcI+L/uKS KMMAmvz9ZZaGBuGzo9DPsgfZFz0Gkorn7AGrAOt1Xr4Hq1BvYVmtqWAnHNawCHETAL2G Y2UR7bbUUj7R/a7OvHaL750xnqsy1DzkFmE2o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=tcJdbDWQRx9Qw/9B5xbGyNmn07rTHFET5fh2Mh30TetP3jaaipNAPkE277/SFIUC7Z 1f6PykAgCQ8ChEh+xtJph4Gbvx9qCMCIvCy7n68i/ziZp0FtpK6upkTN8izj4hQocA85 MyEwSkx6QZRzUmbO/jFagtKS6OCqRjOUnhwcI= MIME-Version: 1.0 Received: by 10.227.142.75 with SMTP id p11mr226223wbu.27.1282242592845; Thu, 19 Aug 2010 11:29:52 -0700 (PDT) Received: by 10.227.138.225 with HTTP; Thu, 19 Aug 2010 11:29:52 -0700 (PDT) In-Reply-To: <4C6D6194.6010202@sugarcrm.com> References: <4C6CE273.2070501@sugarcrm.com> <4C6CE604.1010209@dmi.me.uk> <4C6CE793.1020601@sugarcrm.com> <4C6CEBE4.3070306@dmi.me.uk> <4C6D6194.6010202@sugarcrm.com> Date: Thu, 19 Aug 2010 20:29:52 +0200 Message-ID: To: Stas Malyshev Cc: Dave Ingram , PHP Internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] inheritance check too strict? From: pierre.php@gmail.com (Pierre Joye) hi Stas, On Thu, Aug 19, 2010 at 6:53 PM, Stas Malyshev wrote: >> Arguments being silently ignored sounds like a potential bug to me. I >> know it's something I've seen in code I've maintained. > > No, it's not a bug - extra arguments were silently ignored in PHP since the > dawn of time. Inconsistently. Many internals functions do not accept more arguments than the supported ones. However, what are the benefits to be less strict in your example? I can't think of any practical (or critical) example where you have to remove this optional argument. Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org