#36941 [Opn->Asn]: ArrayIterator does not clone itself

From: Date: Sat, 01 Apr 2006 19:17:04 +0000
Subject: #36941 [Opn->Asn]: ArrayIterator does not clone itself
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-95195@lists.php.net to get a copy of this message
ID: 36941 Updated by: tony2001@php.net Reported By: ce at netage dot bg -Status: Open +Status: Assigned Bug Type: SPL related Operating System: linux PHP Version: 5.1.3RC2 -Assigned To: +Assigned To: helly New Comment: Marcus, could you plz look at it? Previous Comments: ------------------------------------------------------------------------ [2006-04-01 16:29:25] ce at netage dot bg Description: ------------ ArrayIterator does not clone itself Reproduce code: --------------- $a = new ArrayIterator(); $a[] = 1; $b = clone $a; var_dump($a[0], $b[0]); $b[0] = $b[0] + 1; var_dump($a[0], $b[0]); Expected result: ---------------- int(1) int(1) int(1) int(2) Actual result: -------------- int(1) int(1) int(2) int(2) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36941&edit=1

« previous php.bugs (#95195) next »