Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42954 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28909 invoked from network); 5 Feb 2009 20:48:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2009 20:48:11 -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.116 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.116 us-gw1.zend.com Windows 2000 SP4, XP SP1 Received: from [63.205.162.116] ([63.205.162.116:51825] helo=us-gw1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FE/B9-16965-A805B894 for ; Thu, 05 Feb 2009 15:48:11 -0500 Received: from [192.168.16.104] ([192.168.16.104]) by us-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 5 Feb 2009 12:49:14 -0800 Message-ID: <498B5088.4090203@zend.com> Date: Thu, 05 Feb 2009 12:48:08 -0800 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: =?UTF-8?B?Sm9oYW5uZXMgU2NobMO8dGVy?= CC: internals@lists.php.net References: <5EC76153-898F-49C2-BDF1-C227578DB874@pooteeweet.org> <298CA3D0-60B7-4CFD-A2D3-E39D52ECDD46@bitextender.com> <1233851543.8601.24.camel@goldfinger> <1233860567.8601.34.camel@goldfinger> In-Reply-To: <1233860567.8601.34.camel@goldfinger> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 05 Feb 2009 20:49:14.0781 (UTC) FILETIME=[34A46CD0:01C987D3] Subject: Re: [PHP-DEV] towards the next 5.3 release From: stas@zend.com (Stanislav Malyshev) Hi! > Of course we could, we'd "just" have to change a structure and > zend_verify_arg_class_kind() and of course the language syntax to allow > something like "function foo(A|B $bar) {}" but this still would mean to Maybe just use a plain old if()? :) I understand that is super-uncool bit we really don't have to invent another mini-php there to specify argument types (what if I want A and B, but not C which extends B, but also null would be OK, and strings "A" and "B" too?) -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com