tony2001 Wed Dec 21 12:16:20 2005 EDT
Added files: (Branch: PHP_5_1)
/php-src/ext/wddx/tests bug35410_64bit.phpt
Modified files:
/php-src/ext/wddx/tests bug35410.phpt
Log:
fix test, add test for 64bit platform
http://cvs.php.net/viewcvs.cgi/php-src/ext/wddx/tests/bug35410.phpt?r1=1.1.2.3&r2=1.1.2.4&diff_format=u
Index: php-src/ext/wddx/tests/bug35410.phpt
diff -u php-src/ext/wddx/tests/bug35410.phpt:1.1.2.3
php-src/ext/wddx/tests/bug35410.phpt:1.1.2.4
--- php-src/ext/wddx/tests/bug35410.phpt:1.1.2.3 Wed Dec 21 11:46:26 2005
+++ php-src/ext/wddx/tests/bug35410.phpt Wed Dec 21 12:16:20 2005
@@ -1,7 +1,10 @@
--TEST--
#35410 (wddx_deserialize() doesn't handle large ints as keys properly)
--SKIPIF--
-<?php if (!extension_loaded("wddx")) print "skip"; ?>
+<?php
+ if (!extension_loaded("wddx")) print "skip";
+ if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
+?>
--FILE--
<?php
$wddx = <<<WDX
@@ -53,7 +56,7 @@
array(1) {
["content_113300831086270200"]=>
array(1) {
- [113301888545229100]=>
+ ["113301888545229100"]=>
array(3) {
["max"]=>
int(10)
http://cvs.php.net/viewcvs.cgi/php-src/ext/wddx/tests/bug35410_64bit.phpt?view=markup&rev=1.1
Index: php-src/ext/wddx/tests/bug35410_64bit.phpt
+++ php-src/ext/wddx/tests/bug35410_64bit.phpt
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php