|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-03-20 12:43 UTC] nikic@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: nikic
[2016-03-20 12:43 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 22:00:01 2025 UTC |
Description: ------------ Not actually sure which parts of this are actually supposed to work (as we didn't previously support by-ref modification for ArrayAccess). Test script: --------------- <?php error_reporting(E_ALL); class RefArray implements ArrayAccess { public $array; public function &offsetGet($key) { return $this->array[$key]; } public function offsetSet($key, $value) { $this->array[$key] = $value; } public function offsetExists($key) { return isset($this->array[$key]); } public function offsetUnset($key) { unset($this->array[$key]); } } $arr = new RefArray; $arr[0] = 'abc'; $arr[1] =& $arr[0];