Annotation of embedaddon/php/ext/date/tests/bug53437_var5.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #53437 DateInterval unserialize bad data, 64 bit
3: --SKIPIF--
4: <?php if (PHP_INT_SIZE != 8) { die('skip true 64 bit only'); } ?>
5: --FILE--
6: <?php
7: $s = 'O:12:"DateInterval":15:{s:1:"y";s:1:"2";s:1:"m";s:1:"0";s:1:"d";s:3:"bla";s:1:"h";s:1:"6";s:1:"i";s:1:"8";s:1:"s";s:1:"0";s:7:"weekday";i:10;s:16:"weekday_behavior";i:10;s:17:"first_last_day_of";i:0;s:6:"invert";i:0;s:4:"days";s:4:"aoeu";s:12:"special_type";i:0;s:14:"special_amount";s:21:"234523452345234532455";s:21:"have_weekday_relative";i:21474836489;s:21:"have_special_relative";s:3:"bla";}';
8:
9: $di = unserialize($s);
10: var_dump($di);
11:
12: ?>
13: ==DONE==
14: --EXPECTF--
15: object(DateInterval)#%d (15) {
16: ["y"]=>
17: int(2)
18: ["m"]=>
19: int(0)
20: ["d"]=>
21: int(0)
22: ["h"]=>
23: int(6)
24: ["i"]=>
25: int(8)
26: ["s"]=>
27: int(0)
28: ["weekday"]=>
29: int(10)
30: ["weekday_behavior"]=>
31: int(10)
32: ["first_last_day_of"]=>
33: int(0)
34: ["invert"]=>
35: int(0)
36: ["days"]=>
37: int(0)
38: ["special_type"]=>
39: int(0)
40: ["special_amount"]=>
41: int(9223372036854775807)
42: ["have_weekday_relative"]=>
43: int(9)
44: ["have_special_relative"]=>
45: int(0)
46: }
47: ==DONE==
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>