Test: /ext/spl/tests/bug74669.phpt - Version 7.4.6-dev        

Bug #74669 Unserialize ArrayIterator broken
Submitted: 2017-05-29 11:55:48 Modified: 2017-07-18 20:21:40
From: sp Assigned: nikic
Status: Closed Package: SPL related
PHP Version: 7.1.5 OS: Linux

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

Count Diff
2 (67%)
001+ Segmentation fault (core dumped) 001- 0 => test1 002- 1 => test2 003- 0 => test1 004- 1 => test2 003+ Termsig=11 006- Notice: Undefined index: foo in %s on line %d 007- NULL 008- object(SelfArray)#9 (1) { 009- ["foo"]=> 010- string(3) "bar" 011- } 012- string(77) "O:9:"SelfArray":4:{i:0;i:16777216;i:1;N;i:2;a:1:{s:3:"foo";s:3:"bar";}i:3;N;}" 013- object(SelfArray)#9 (1) { 014- ["foo"]=> 015- string(3) "bar" 016- } 017- string(3) "bar"
1 (33%)
001+ Fatal error: Allowed memory size of 134217728 bytes exhausted at /home/travis/build/php/php-src/Zend/zend_string.h:133 (tried to allocate 17960381302687404992 bytes) in %s/bug74669.php on line 60 001- 0 => test1 002- 1 => test2 003- 0 => test1 004- 1 => test2 005- 006- Notice: Undefined index: foo in %s on line %d 007- NULL 008- object(SelfArray)#9 (1) { 009- ["foo"]=> 010- string(3) "bar" 011- } 012- string(77) "O:9:"SelfArray":4:{i:0;i:16777216;i:1;N;i:2;a:1:{s:3:"foo";s:3:"bar";}i:3;N;}" 013- object(SelfArray)#9 (1) { 014- ["foo"]=> 015- string(3) "bar" 016- } 017- string(3) "bar"