xref: /PHP-7.2/ext/wddx/tests/bug41527.phpt (revision b6762a89)
1--TEST--
2Bug #41527 (WDDX deserialize numeric string array keys)
3--SKIPIF--
4<?php if (!extension_loaded("wddx")) print "skip"; ?>
5--FILE--
6<?php
7$data = array('01' => 'Zero', '+1' => 'Plus sign', ' 1' => 'Space');
8
9var_dump(wddx_deserialize(wddx_serialize_vars('data')));
10?>
11--EXPECT--
12array(1) {
13  ["data"]=>
14  array(3) {
15    ["01"]=>
16    string(4) "Zero"
17    ["+1"]=>
18    string(9) "Plus sign"
19    [" 1"]=>
20    string(5) "Space"
21  }
22}
23