php-src/ext/wddx/tests/bug37587.phpt

35 lines
511 B
Plaintext
Raw Normal View History

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
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
));
2006-05-25 09:59:25 +00:00
?>
===DONE===
--EXPECT--
array(1) {
[0]=>
array(1) {
["test"]=>
string(11) "Hello World"
}
}
===DONE===