From: Antony Dovgal Date: Wed, 21 Dec 2005 12:16:25 +0000 (+0000) Subject: MFB: fix test, add test for 64bit platform X-Git-Tag: RELEASE_1_0_4~287 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=71ee97561e90a8566220fe9ee23eea9dcf139bba;p=php MFB: fix test, add test for 64bit platform --- diff --git a/ext/wddx/tests/bug35410.phpt b/ext/wddx/tests/bug35410.phpt index 966bb0e5bb..3b4b9b62cf 100755 --- a/ext/wddx/tests/bug35410.phpt +++ b/ext/wddx/tests/bug35410.phpt @@ -1,7 +1,10 @@ --TEST-- #35410 (wddx_deserialize() doesn't handle large ints as keys properly) --SKIPIF-- - + --FILE-- array(1) { - [113301888545229100]=> + ["113301888545229100"]=> array(3) { ["max"]=> int(10) diff --git a/ext/wddx/tests/bug35410_64bit.phpt b/ext/wddx/tests/bug35410_64bit.phpt new file mode 100755 index 0000000000..15377b175e --- /dev/null +++ b/ext/wddx/tests/bug35410_64bit.phpt @@ -0,0 +1,76 @@ +--TEST-- +#35410 (wddx_deserialize() doesn't handle large ints as keys properly) +--SKIPIF-- + +--FILE-- + +
+Content Configuration File +
+ + + + + + + + + +10 + + +4 + + + + + + +desc + + + + + + + + + + + + + + +WDX; + +var_dump(wddx_deserialize($wddx)); +?> +--EXPECT-- +array(1) { + ["content_queries"]=> + array(1) { + ["content_113300831086270200"]=> + array(1) { + [113301888545229100]=> + array(3) { + ["max"]=> + int(10) + ["cache"]=> + int(4) + ["order"]=> + array(1) { + ["content_113300831086270200"]=> + array(1) { + ["CMS_BUILD"]=> + string(4) "desc" + } + } + } + } + } +}