1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 22:41:20 +02:00
Files
archived-php-src/ext/wddx/tests/bug37587.phpt
Mark Karpeles 7bba0a337c - MFB (PHP_5_2): #46496, wddx_serialize treats input as ISO-8859-1 (Mark Karpeles)
# - The tests are failing for now (not handling PHP6 specific string types), this will be fixed in a few days
2008-11-20 11:50:51 +00:00

35 lines
512 B
PHP
Executable File

--TEST--
Bug #37587 (var without attribute causes segfault)
--SKIPIF--
<?php if (!extension_loaded("wddx")) print "skip"; ?>
--FILE--
<?php
var_dump(wddx_deserialize(<<<EOF
<wddxPacket version='1.0'>
<header/>
<data>
<array length='1'>
<var>
<struct>
<var name='test'><string>Hello World</string></var>
</struct>
</var>
</array>
</data>
</wddxPacket>
EOF
));
?>
===DONE===
--EXPECT--
array(1) {
[0]=>
array(1) {
[u"test"]=>
string(11) "Hello World"
}
}
===DONE===