Bug #75161 [Opn->Csd]: AppendIterator iterate problem

From: Date: Wed, 06 Sep 2017 02:35:04 +0000
Subject: Bug #75161 [Opn->Csd]: AppendIterator iterate problem
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-210967@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75161&edit=1 ID: 75161 Updated by: jhdxr@php.net Reported by: e dot a dot blinov at gmail dot com Summary: AppendIterator iterate problem -Status: Open +Status: Closed Type: Bug Package: SPL related Operating System: CentOS 7 PHP Version: 7.2.0RC1 -Assigned To: +Assigned To: jhdxr Block user comment: N Private report: N New Comment: Since nikic has reverted the patch for bug #74977, I'm closing this one. Previous Comments: ------------------------------------------------------------------------ [2017-09-06 02:26:15] jhdxr@php.net It seems the patch for #74977 broke this as well ------------------------------------------------------------------------ [2017-09-06 00:00:28] e dot a dot blinov at gmail dot com Description: ------------ Bug actual for 7.1.9, 7.2.0beta2 - 7.2.0rc1 Not reproduced in 5.6.0 - 5.6.30, hhvm-3.18.4 - 3.21.0, 7.0.0 - 7.1.8, 7.2.0alpha1 - 7.2.0beta1 Online comparsion https://3v4l.org/OMDFY My application crashed after update to 7.1.9 Test script: --------------- $a = new \AppendIterator(); $a->append(new \ArrayIterator([1])); $b = new \AppendIterator(); $b->append($a); $b->append(new \ArrayIterator([1])); foreach ($b AS $z){ var_dump($z); } Expected result: ---------------- int(1) int(1) Actual result: -------------- object(ArrayIterator)#4 (1) { ["storage":"ArrayIterator":private]=> array(1) { [0]=> int(1) } } int(1) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75161&edit=1

« previous php.bugs (#210967) next »