2006-05-25 09:59:25 +00:00
|
|
|
--TEST--
|
|
|
|
Bug #37587 (var without attribute causes segfault)
|
2006-06-27 00:09:43 +00:00
|
|
|
--SKIPIF--
|
|
|
|
<?php if (!extension_loaded("wddx")) print "skip"; ?>
|
2006-05-25 09:59:25 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
|
2008-11-20 14:14:05 +00:00
|
|
|
var_dump(wddx_deserialize(<<<EOF
|
|
|
|
<wddxPacket version='1.0'>
|
2006-05-25 09:59:25 +00:00
|
|
|
<header/>
|
|
|
|
<data>
|
|
|
|
<array length='1'>
|
|
|
|
<var>
|
|
|
|
<struct>
|
|
|
|
<var name='test'><string>Hello World</string></var>
|
|
|
|
</struct>
|
|
|
|
</var>
|
|
|
|
</array>
|
|
|
|
</data>
|
|
|
|
</wddxPacket>
|
|
|
|
EOF
|
2008-11-20 14:14:05 +00:00
|
|
|
));
|
2006-05-25 09:59:25 +00:00
|
|
|
|
|
|
|
?>
|
|
|
|
===DONE===
|
|
|
|
--EXPECT--
|
|
|
|
array(1) {
|
|
|
|
[0]=>
|
|
|
|
array(1) {
|
|
|
|
["test"]=>
|
|
|
|
string(11) "Hello World"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
===DONE===
|