Edit report at https://bugs.php.net/bug.php?id=60298&edit=1

 ID:                 60298
 Comment by:         fedora at famillecollet dot com
 Reported by:        fedora at famillecollet dot com
 Summary:            PHP 5.4.0RC1 - Tests failed : 2
 Status:             Open
 Type:               Bug
 Package:            igbinary
 Operating System:   GNU/Linux (Fedora 15)
 PHP Version:        5.4.0RC1
 Block user comment: N
 Private report:     N

 New Comment:

About igbinary_unserialize_v1_compatible, it seems related to 
https://bugs.php.net/bug.php?id=55798.

I think igbinary unserialization result should be the same than PHP standard 
serializer.

Linked bug is fix in 5.3 branch, so the test will also failed when this version 
will be published.


Previous Comments:
------------------------------------------------------------------------
[2011-11-14 17:45:56] fedora at famillecollet dot com

Description:
------------
Tried with 1.1.1 and latest git snapshot.



Test script:
---------------
make test


Expected result:
----------------
Test failed : 0

Actual result:
--------------
=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :    0
Exts tested     :   30
---------------------------------------------------------------------

Number of tests :   44                41
Tests skipped   :    3 (  6.8%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    2 (  4.5%) (  4.9%)
Expected fail   :    0 (  0.0%) (  0.0%)
Tests passed    :   39 ( 88.6%) ( 95.1%)
---------------------------------------------------------------------
Time taken      :    1 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Recursive objects [tests/igbinary_024.phpt]
Unserialize backwards compatible with v1. 
[tests/igbinary_unserialize_v1_compatible.phpt]
=====================================================================


$ cat tests/igbinary_024.diff
001+ 
001- objectrec
002- 
17044f626a32140711026161001105002a006262001108004f626a32006363001109004f626a32006f626a17034f626a140311016106011104002a006206021106004f626a006306030e06060111016206021101630603
003- OK
004- objectrecarr
005- 
17044f626a331401110a004f626a33006f626a731404060017034f626a140311016106001104002a006206001106004f626a0063060406011a0214030e0306000e0406010e05060406021a0214030e0306000e0406020e05060406031a0214030e0306000e0406030e050604
006- OK
007- objectselfrec
008- 17044f626a3414021107004f626a34006106641109004f626a34006f626a2200
009- OK

$ cat tests/igbinary_unserialize_v1_compatible.diff
001+ Differing unserialized: object
002+ Expected:
001- reference deserialization works, but the result is not a reference.
002- OK
003+ object(stdClass)#0 (4) {
004+   ["0"]=>
005+   int(1)
006+   ["1"]=>
007+   int(2)
008+   ["2"]=>
009+   int(3)
010+   ["3"]=>
011+   int(4)
012+ }
013+ 
014+ Actual:
015+ object(stdClass)#0 (4) {
016+   [0]=>
017+   int(1)
018+   [1]=>
019+   int(2)
020+   [2]=>
021+   int(3)
022+   [3]=>
023+   int(4)
024+ }
025+ 
026+ reference deserialization works, but the result is not a reference.
027+ OK



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=60298&edit=1

Reply via email to