1--TEST-- 2Bug #37587 (var without attribute causes segfault) 3--SKIPIF-- 4<?php if (!extension_loaded("wddx")) print "skip"; ?> 5--FILE-- 6<?php 7 8var_dump(wddx_deserialize(<<<EOF 9<wddxPacket version='1.0'> 10<header/> 11<data> 12 <array length='1'> 13 <var> 14 <struct> 15 <var name='test'><string>Hello World</string></var> 16 </struct> 17 </var> 18 </array> 19</data> 20</wddxPacket> 21EOF 22)); 23 24?> 25===DONE=== 26--EXPECT-- 27array(1) { 28 [0]=> 29 array(1) { 30 ["test"]=> 31 string(11) "Hello World" 32 } 33} 34===DONE=== 35