1--TEST-- 2wddx deserialize from ressource 3--SKIPIF-- 4<?php if (!extension_loaded("wddx")) print "skip"; ?> 5--INI-- 6precision=14 7--FILE-- 8<?php 9 $path = dirname(__FILE__); 10 $fp = fopen("php://temp", 'w+'); 11 fputs($fp, "<wddxPacket version='1.0'><header><comment>TEST comment</comment></header><data><struct><var name='var1'><null/></var><var name='var2'><string>some string</string></var><var name='var3'><number>756</number></var><var name='var4'><boolean value='true'/></var></struct></data></wddxPacket>"); 12 rewind($fp); 13 var_dump(wddx_deserialize($fp)); 14 fclose($fp); 15?> 16--EXPECT-- 17array(4) { 18 ["var1"]=> 19 NULL 20 ["var2"]=> 21 string(11) "some string" 22 ["var3"]=> 23 int(756) 24 ["var4"]=> 25 bool(true) 26} 27