Re: ArrayAccess::offsetGet not returning a ref

From: Date: Fri, 06 Aug 2010 11:48:38 +0000
Subject: Re: ArrayAccess::offsetGet not returning a ref
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-49211@lists.php.net to get a copy of this message
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


Thread (12 messages)

« previous php.internals (#49211) next »