Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49466 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38162 invoked from network); 19 Aug 2010 18:30:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Aug 2010 18:30:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.143 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.143 smtp143.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.143] ([67.192.241.143:38618] helo=smtp143.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5A/D5-00261-C387D6C4 for ; Thu, 19 Aug 2010 14:30:25 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp4.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id 5D852E83A7; Thu, 19 Aug 2010 14:30:14 -0400 (EDT) X-Virus-Scanned: OK Received: from [10.8.11.37] (unknown [74.85.23.220]) (Authenticated sender: smalyshev@sugarcrm.com) by smtp4.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTPSA id A48B7E8521; Thu, 19 Aug 2010 14:30:13 -0400 (EDT) Message-ID: <4C6D7835.9000100@sugarcrm.com> Date: Thu, 19 Aug 2010 11:30:13 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6 MIME-Version: 1.0 To: Ferenc Kovacs CC: Dave Ingram , PHP Internals References: <4C6CE273.2070501@sugarcrm.com> <4C6CE604.1010209@dmi.me.uk> <4C6CE793.1020601@sugarcrm.com> <4C6CEBE4.3070306@dmi.me.uk> <4C6D6194.6010202@sugarcrm.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] inheritance check too strict? From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > I know that you know this, but I want this to be clear: > the extra args ignored only from the class definition point of view, > they can be harvested by the func_get_args() function. Right. Same can happen when inheriting, of course. There's no additional restriction when defining a method this way. That's entirely what LSP demands - no additional restriction. So why have the warning? -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227