summaryrefslogtreecommitdiff
path: root/ext/wddx/tests/bug75055.phpt
blob: 2956284d221cc7a414c77fb22ef47eae01a15b43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
Bug #75055 Out-Of-Bounds Read in timelib_meridian()
--SKIPIF--
<?php if (!extension_loaded("wddx")) print "skip"; ?>
--FILE--
<?php

$file_str = dirname(__FILE__) . "/bug75055.wddx";

$wddx_str = file_get_contents($file_str);
print strlen($wddx_str) . " bytes read.\n";

var_dump(wddx_deserialize($wddx_str));
?>
--EXPECT--
323 bytes read.
array(1) {
  ["aDateTime"]=>
  string(12) "frONt of 0 0"
}