xref: /PHP-7.2/ext/wddx/tests/bug52468.phpt (revision 5d62cd15)
1--TEST--
2Bug #52468 (wddx_deserialize corrupts integer field value when left empty)
3--SKIPIF--
4<?php
5if (!extension_loaded('wddx')) {
6    die('skip. wddx not available');
7}
8?>
9--FILE--
10<?php
11
12$message = "<wddxPacket version='1.0'><header><comment>my_command</comment></header><data><struct><var name='handle'><number></number></var></struct></data></wddxPacket>";
13
14print_r(wddx_deserialize($message));
15print_r(wddx_deserialize($message));
16
17?>
18--EXPECT--
19Array
20(
21    [handle] => 0
22)
23Array
24(
25    [handle] => 0
26)
27