Bug #68196 [Opn->Csd]: Segfault when by-ref assigning offset of overloaded object
| From: | nikic@php.net | Date: | Sun, 20 Mar 2016 12:43:48 +0000 |
| Subject: | Bug #68196 [Opn->Csd]: Segfault when by-ref assigning offset of overloaded object | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-199959@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68196&edit=1
ID: 68196
Updated by: nikic@php.net
Reported by: nikic@php.net
Summary: Segfault when by-ref assigning offset of overloaded
object
-Status: Open
+Status: Closed
Type: Bug
Package: Scripting Engine problem
PHP Version: 5.4Git-2014-10-09 (Git)
-Assigned To:
+Assigned To: nikic
Block user comment: N
Private report: N
New Comment:
Doesn't exist anymore, and 3v4l doesn't show it ever existing: https://3v4l.org/ggHJm
So either I was hallucinating here or it was fixed before the first 5.4 release. Closing either way.
Previous Comments:
------------------------------------------------------------------------
[2014-10-09 10:09:04] nikic@php.net
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];
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68196&edit=1