Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44625 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79022 invoked from network); 2 Jul 2009 08:27:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jul 2009 08:27:29 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 63.205.162.117 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.117 us-mr1.zend.com Linux 2.4/2.6 Received: from [63.205.162.117] ([63.205.162.117:34243] helo=us-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CB/B2-65216-07F6C4A4 for ; Thu, 02 Jul 2009 04:27:28 -0400 Received: from us-gw1.zend.com (us-ex1.zend.net [192.168.16.5]) by us-mr1.zend.com (Postfix) with ESMTP id C4E95E12BB for ; Thu, 2 Jul 2009 01:16:22 -0700 (PDT) Received: from [192.168.27.29] ([192.168.27.29]) by us-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 2 Jul 2009 01:28:02 -0700 Message-ID: <4A4C6F6C.5030901@zend.com> Date: Thu, 02 Jul 2009 01:27:24 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: Paul Biggar CC: PHP Internals References: <4A4C61A1.1090602@zend.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 02 Jul 2009 08:28:02.0658 (UTC) FILETIME=[03EA3C20:01C9FAEF] Subject: Re: [PHP-DEV] Re: Flexible type hinting From: stas@zend.com (Stanislav Malyshev) Hi! > I don't think we need to worry about this. Consider it to be the same > as default values. So yes, yes, allowed but dont do anything since > those functions are never called. There is a functionality handling default values (or, more precisely, optional arguments) with inheritance, etc. And it is doing something - if you declare interface as foo(int $a) and implement it as foo(string $a) there may be a lot of WTF happening. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com