ArrayAccess::offsetGet not returning a ref

From: Date: Tue, 27 Apr 2010 08:17:42 +0000
Subject: ArrayAccess::offsetGet not returning a ref
Groups: php.internals 
Request: Send a blank email to internals+get-48105@lists.php.net to get a copy of this message
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). What do you think would be the best option? Can you think of another? Best, -- Etienne Kneuss

« previous php.internals (#48105) next »