Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42942 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55560 invoked from network); 5 Feb 2009 19:02:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2009 19:02:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 83.243.58.133 as permitted sender) X-PHP-List-Original-Sender: johannes@php.net X-Host-Fingerprint: 83.243.58.133 mailout1.netbeat.de Linux 2.6 Received: from [83.243.58.133] ([83.243.58.133:33893] helo=mailout1.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 71/CB-24530-0E73B894 for ; Thu, 05 Feb 2009 14:02:57 -0500 Received: (qmail 31845 invoked by uid 89); 5 Feb 2009 19:14:56 -0000 Received: from unknown (HELO ?192.168.1.103?) (johannes%schlueters.de@93.104.114.3) by mailout1.netbeat.de with ESMTPA; 5 Feb 2009 19:14:56 -0000 To: Sebastian Bergmann Cc: internals@lists.php.net In-Reply-To: References: <5EC76153-898F-49C2-BDF1-C227578DB874@pooteeweet.org> <298CA3D0-60B7-4CFD-A2D3-E39D52ECDD46@bitextender.com> <1233851543.8601.24.camel@goldfinger> Content-Type: text/plain; charset="UTF-8" Date: Thu, 05 Feb 2009 20:02:47 +0100 Message-ID: <1233860567.8601.34.camel@goldfinger> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] towards the next 5.3 release From: johannes@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Thu, 2009-02-05 at 10:36 -0800, Sebastian Bergmann wrote: > Johannes Schlüter wrote: > > - No typehint, as it is now, #47206 "Expected / to be documented", > > incompatible with 5.2.6-5.2.8 but compatible with most other 5.2 > > versions > > Could we extend the arginfo system to allow for multiple typehints? Of > course the Reflection API would have to support this :-/ 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 break source compatibility in a bad way here as the user's code would have to follow the signature and won't be able to be 5.2 and 5.3 compatible in one file. johannes