Annotation of embedaddon/php/ext/wddx/tests/bug37587.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #37587 (var without attribute causes segfault)
! 3: --SKIPIF--
! 4: <?php if (!extension_loaded("wddx")) print "skip"; ?>
! 5: --FILE--
! 6: <?php
! 7:
! 8: var_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>
! 21: EOF
! 22: ));
! 23:
! 24: ?>
! 25: ===DONE===
! 26: --EXPECT--
! 27: array(1) {
! 28: [0]=>
! 29: array(1) {
! 30: ["test"]=>
! 31: string(11) "Hello World"
! 32: }
! 33: }
! 34: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>