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

Bug #71617 private properties lost when ArrayObject unserialize
Submitted: 2016-02-17 09:35:01 Modified:
From: janpoem Assigned:
Status: Closed Package: Class/Object related
PHP Version: 7.0.3 OS: Windows 10

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

Count Diff
2 (67%)
001+ Segmentation fault (core dumped) 002+ 003+ Termsig=11 001- string(2) "ok" 002- object(Test)#2 (2) { 003- ["name":"Test":private]=> 004- string(2) "ok" 005- ["storage":"ArrayObject":private]=> 006- array(2) { 007- ["a"]=> 008- string(1) "a" 009- ["b"]=> 010- string(1) "b" 011- } 012- }
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/bug71617.php on line 29 001- string(2) "ok" 002- object(Test)#2 (2) { 003- ["name":"Test":private]=> 004- string(2) "ok" 005- ["storage":"ArrayObject":private]=> 006- array(2) { 007- ["a"]=> 008- string(1) "a" 009- ["b"]=> 010- string(1) "b" 011- } 012- }