File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ PHP NEWS
20
20
. Fixed bug #74631 (PDO_PCO with PHP-FPM: OCI environment initialized
21
21
before PHP-FPM sets it up). (Ingmar Runge)
22
22
23
+ - SPL:
24
+ . Fixed bug #75155 (AppendIterator::append() is broken when appending another
25
+ AppendIterator). (Nikita)
26
+
23
27
- Standard:
24
28
. Fixed bug #75097 (gethostname fails if your host name is 64 chars long). (Andrea)
25
29
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Bug #75155: AppendIterator::append() is broken when appending another AppendIterator
3
+ --FILE--
4
+ <?php
5
+
6
+ $ array_a = new ArrayIterator (array ('a ' , 'b ' , 'c ' ));
7
+ $ array_b = new ArrayIterator (array ('d ' , 'e ' , 'f ' ));
8
+
9
+ $ iterator = new AppendIterator ;
10
+ $ iterator ->append ($ array_a );
11
+
12
+ $ iterator2 = new AppendIterator ;
13
+ $ iterator2 ->append ($ iterator );
14
+ $ iterator2 ->append ($ array_b );
15
+
16
+ foreach ($ iterator2 as $ current ) {
17
+ echo $ current ;
18
+ }
19
+
20
+ ?>
21
+ --EXPECT--
22
+ abcdef
You can’t perform that action at this time.
0 commit comments