Test: /ext/spl/tests/spl_004.phpt - Version 7.2.0-dev    

There are 2 different diffs reported by users for this test.

Count Diff
9 (53%)
001+ Fatal error: Uncaught TypeError: Cannot assign integer to reference of type ?unknown in %s/spl_004.php:26
002+ Stack trace:
003+ #0 [internal function]: test()
004+ #1 %s/spl_004.php(32): iterator_apply(Object(RecursiveArrayIterator), 'test', NULL)
005+ #2 {main}
006+ thrown in %s/spl_004.php on line 26
001- int(0)
002- int(1)
003- int(2)
004- int(3)
005- ===ARGS===
006- int(0)
007- int(1)
008- int(1)
009- array(2) {
010- [0]=>
011- int(21)
012- [1]=>
013- int(22)
014- }
015- int(2)
016- int(3)
017- int(3)
018- ===RECURSIVE===
019- int(3)
020- int(4)
021- int(5)
022- int(6)
023- int(4)
024- ===ERRORS===
025- Error: Argument 3 passed to iterator_apply() must be of the type array or null, integer given
026- Error: iterator_apply() expects parameter 2 to be a valid callback, function 'non_existing_function' not found or invalid function name
027- NULL
028- Error: iterator_apply() expects at most 3 parameters, 4 given
029- NULL
030- ===DONE===
8 (47%)
001+ Segmentation fault (core dumped)
002+
003+ Termsig=11
001- int(0)
002- int(1)
003- int(2)
004- int(3)
005- ===ARGS===
006- int(0)
007- int(1)
008- int(1)
009- array(2) {
010- [0]=>
011- int(21)
012- [1]=>
013- int(22)
014- }
015- int(2)
016- int(3)
017- int(3)
018- ===RECURSIVE===
019- int(3)
020- int(4)
021- int(5)
022- int(6)
023- int(4)
024- ===ERRORS===
025- Error: Argument 3 passed to iterator_apply() must be of the type array or null, integer given
026- Error: iterator_apply() expects parameter 2 to be a valid callback, function 'non_existing_function' not found or invalid function name
027- NULL
028- Error: iterator_apply() expects at most 3 parameters, 4 given
029- NULL
030- ===DONE===