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

Bug #77298 segfault occurs when add property to unserialized ArrayObject
Submitted: 2018-12-14 11:47:53 Modified: 2018-12-21 16:46:41
From: conorycom Assigned: cmb
Status: Closed Package: SPL related
PHP Version: 7.3.0 OS: centos7

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

Count Diff
1 (33%)
001+ Segmentation fault (core dumped) 002+ 003+ Termsig=11 001- object(ArrayObject)#2 (1) { 002- ["storage":"ArrayObject":private]=> 003- array(1) { 004- [1]=> 005- int(123) 006- } 007- } 008- object(ArrayObject)#3 (1) { 009- ["storage":"ArrayObject":private]=> 010- array(1) { 011- ["xm"]=> 012- int(456) 013- } 014- }
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/bug77298.php on line 3 001- object(ArrayObject)#2 (1) { 002- ["storage":"ArrayObject":private]=> 003- array(1) { 004- [1]=> 005- int(123) 006- } 007- } 008- object(ArrayObject)#3 (1) { 009- ["storage":"ArrayObject":private]=> 010- array(1) { 011- ["xm"]=> 012- int(456) 013- } 014- }
1 (33%)
001+ Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 8083803450014393480 bytes) in %s/bug77298.php on line 3 001- object(ArrayObject)#2 (1) { 002- ["storage":"ArrayObject":private]=> 003- array(1) { 004- [1]=> 005- int(123) 006- } 007- } 008- object(ArrayObject)#3 (1) { 009- ["storage":"ArrayObject":private]=> 010- array(1) { 011- ["xm"]=> 012- int(456) 013- } 014- }