From: Antony Dovgal Date: Wed, 21 Dec 2005 12:16:20 +0000 (+0000) Subject: fix test, add test for 64bit platform X-Git-Tag: php-5.1.2RC1~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=604990d6a56b47e0c442118746cc312268ca4a9e;p=php 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" + } + } + } + } + } +}