Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49211 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49471 invoked from network); 6 Aug 2010 11:48:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Aug 2010 11:48:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:51226] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3B/03-28904-996FB5C4 for ; Fri, 06 Aug 2010 07:48:44 -0400 Received: from localhost (xdebug.org [127.0.0.1]) by xdebug.org (Postfix) with ESMTPS id EC300DE13D; Fri, 6 Aug 2010 12:48:38 +0100 (BST) Date: Fri, 6 Aug 2010 12:48:38 +0100 (BST) X-X-Sender: derick@kossu.derickrethans.nl To: Etienne Kneuss cc: internals Mailing List In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] ArrayAccess::offsetGet not returning a ref From: derick@php.net (Derick Rethans) On Tue, 27 Apr 2010, Etienne Kneuss wrote: > Hi, > > it looks like the fact that ArrayAccess::offsetGet is not returning a > reference is a recurrent problem, I see basically 4 options: > > a) Ignore the issue, change nothing > > b) Rewrite offsetGet to return a ref, breaking BC > > c) Create a new ArrayAccess interface where it does return a ref > > d) Relax prototype checks so that both are allowed. > > Personally, I believe that a fatal on such prototypes error is not > warranted, so I'd prefer (d). Can you give an example of this one? Derick -- http://derickrethans.nl | http://xdebug.org Like Xdebug? Consider a donation: http://xdebug.org/donate.php twitter: @derickr and @xdebug