1--TEST-- 2wddx deserialization test (64-bit) 3--SKIPIF-- 4<?php if (!extension_loaded("wddx")) print "skip"; ?> 5<?php echo PHP_INT_SIZE != 8 ? "skip 64-bit only" : "OK" ?> 6--INI-- 7precision=14 8--FILE-- 9<?php 10 $path = dirname(__FILE__); 11 var_dump(wddx_deserialize(file_get_contents("{$path}/wddx.xml"))); 12?> 13--EXPECT-- 14array(11) { 15 ["aNull"]=> 16 NULL 17 ["aString"]=> 18 string(8) "a string" 19 ["aNumber"]=> 20 float(-12.456) 21 ["aDateTime"]=> 22 int(897625932) 23 ["aDateTime2"]=> 24 int(329632332) 25 ["aDateTime3"]=> 26 int(2223088332) 27 ["aBoolean"]=> 28 bool(true) 29 ["anArray"]=> 30 array(2) { 31 [0]=> 32 int(10) 33 [1]=> 34 string(14) "second element" 35 } 36 ["aBinary"]=> 37 string(11) "binary data" 38 ["anObject"]=> 39 array(2) { 40 ["s"]=> 41 string(8) "a string" 42 ["n"]=> 43 float(-12.456) 44 } 45 ["aRecordset"]=> 46 array(2) { 47 ["NAME"]=> 48 array(2) { 49 [0]=> 50 string(8) "John Doe" 51 [1]=> 52 string(8) "Jane Doe" 53 } 54 ["AGE"]=> 55 array(2) { 56 [0]=> 57 int(34) 58 [1]=> 59 int(31) 60 } 61 } 62} 63