summaryrefslogtreecommitdiff
path: root/ext/wddx/tests/bug41527.phpt
blob: 329f732a197dbd988184d052a8a0f3b506ffc7c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--TEST--
Bug #41527 (WDDX deserialize numeric string array keys)
--SKIPIF--
<?php if (!extension_loaded("wddx")) print "skip"; ?>
--FILE--
<?php
$data = array('01' => 'Zero', '+1' => 'Plus sign', ' 1' => 'Space');

var_dump(wddx_deserialize(wddx_serialize_vars('data')));
?>
--EXPECTF--
Deprecated: Function wddx_serialize_vars() is deprecated in %s on line %d

Deprecated: Function wddx_deserialize() is deprecated in %s on line %d
array(1) {
  ["data"]=>
  array(3) {
    ["01"]=>
    string(4) "Zero"
    ["+1"]=>
    string(9) "Plus sign"
    [" 1"]=>
    string(5) "Space"
  }
}