Test: /ext/standard/tests/serialize/bug70963.phpt - Version 7.2.0-dev        

Bug #70963 Unserialize shows UNKNOW in result
Submitted: 2015-11-24 02:53:12 Modified:
From: laruence Assigned:
Status: Closed Package: *General Issues
PHP Version: 7.0.0RC7 OS:

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

Count Diff
36 (75%)
001+ array(2) {
001- array(1) {
014+ ["trace":"Exception":private]=>
015+ &string(4) "test"
014- ["previous":"Exception":private]=>
015- NULL
017+ [1]=>
018+ &string(4) "test"
018- array(1) {
020+ array(2) {
031- ["previous":"Exception":private]=>
032- NULL
033+ ["trace":"Exception":private]=>
034+ string(4) "test"
036+ [1]=>
037+ string(4) "test"
8 (17%)
001+ Segmentation fault (core dumped)
002+
003+ Termsig=11
001- array(1) {
002- [0]=>
003- object(Exception)#%d (6) {
004- ["message":protected]=>
005- string(0) ""
006- ["string":"Exception":private]=>
007- string(0) ""
008- ["code":protected]=>
009- int(0)
010- ["file":protected]=>
011- string(%d) "%s"
012- ["line":protected]=>
013- int(2)
014- ["previous":"Exception":private]=>
015- NULL
016- }
017- }
018- array(1) {
019- [0]=>
020- object(Exception)#%d (6) {
021- ["message":protected]=>
022- string(0) ""
023- ["string":"Exception":private]=>
024- string(0) ""
025- ["code":protected]=>
026- int(0)
027- ["file":protected]=>
028- string(%d) "%s"
029- ["line":protected]=>
030- int(3)
031- ["previous":"Exception":private]=>
032- NULL
033- }
034- }
1 (2%)
039+ [Tue Apr 18 20:32:58 2017] Script: %s/bug70963.php'
040+ /home/travis/build/pmmaga/php-src/Zend/zend_string.h(134) : Freeing 0x00007fb272e7ee10 (48 bytes), %s/bug70963.php
041+ Last leak repeated 3 times
042+ === Total 4 memory leaks detected ===
1 (2%)
039+ [Fri Apr 21 18:19:39 2017] Script: %s/bug70963.php'
040+ /home/travis/build/pmmaga/php-src/Zend/zend_string.h(134) : Freeing 0x00007f3c58e81240 (32 bytes), %s/bug70963.php
041+ Last leak repeated 1 time
042+ === Total 2 memory leaks detected ===
1 (2%)
003+ object(Exception)#1 (8) {
003- object(Exception)#%d (6) {
014+ ["trace":"Exception":private]=>
015+ array(1) {
016+ [0]=>
017+ array(4) {
018+ ["file"]=>
019+ string(75) %s/bug70963.php"
020+ ["line"]=>
021+ int(2)
022+ ["function"]=>
023+ string(11) "unserialize"
024+ ["args"]=>
025+ array(1) {
026+ [0]=>
027+ string(73) "a:2:{i:0;O:9:"exception":1:{s:16:"[0x0]Exception[0x0]trace";s:4:"test";}i:1;R:3;}"
028+ }
029+ }
030+ }
014- ["previous":"Exception":private]=>
015- NULL
016- }
017- [1]=>
018- string(4) "test"
019- }
020- array(2) {
021- [0]=>
022- object(Exception)#%d (6) {
023- ["message":protected]=>
024- string(0) ""
025- ["string":"Exception":private]=>
026- string(0) ""
027- ["code":protected]=>
028- int(0)
029- ["file":protected]=>
030- string(%d) "%s"
031- ["line":protected]=>
032- int(3)
033+ [""]=>
034+ &string(4) "test"
037+ &string(4) "test"
037- string(4) "test"
039+ array(2) {
040+ [0]=>
041+ object(Exception)#1 (8) {
042+ ["message":protected]=>
043+ string(0) ""
044+ ["string":"Exception":private]=>
045+ string(0) ""
046+ ["code":protected]=>
047+ int(0)
048+ ["file":protected]=>
049+ string(75) %s/bug70963.php"
050+ ["line":protected]=>
051+ int(3)
052+ ["trace":"Exception":private]=>
053+ array(1) {
054+ [0]=>
055+ array(4) {
056+ ["file"]=>
057+ string(75) %s/bug70963.php"
058+ ["line"]=>
059+ int(3)
060+ ["function"]=>
061+ string(11) "unserialize"
062+ ["args"]=>
063+ array(1) {
064+ [0]=>
065+ string(73) "a:2:{i:0;O:9:"exception":1:{s:16:"[0x0]Exception[0x0]trace";s:4:"test";}i:1;r:3;}"
066+ }
067+ }
068+ }
069+ ["previous":"Exception":private]=>
070+ NULL
071+ [""]=>
072+ string(4) "test"
073+ }
074+ [1]=>
075+ string(4) "test"
076+ }
1 (2%)
001+ Segmentation fault (core dumped)
002+
003+ Termsig=11
001- array(2) {
002- [0]=>
003- object(Exception)#%d (6) {
004- ["message":protected]=>
005- string(0) ""
006- ["string":"Exception":private]=>
007- string(0) ""
008- ["code":protected]=>
009- int(0)
010- ["file":protected]=>
011- string(%d) "%s"
012- ["line":protected]=>
013- int(2)
014- ["previous":"Exception":private]=>
015- NULL
016- }
017- [1]=>
018- string(4) "test"
019- }
020- array(2) {
021- [0]=>
022- object(Exception)#%d (6) {
023- ["message":protected]=>
024- string(0) ""
025- ["string":"Exception":private]=>
026- string(0) ""
027- ["code":protected]=>
028- int(0)
029- ["file":protected]=>
030- string(%d) "%s"
031- ["line":protected]=>
032- int(3)
033- ["previous":"Exception":private]=>
034- NULL
035- }
036- [1]=>
037- string(4) "test"
038- }