xref: /PHP-5.6/ext/standard/tests/time/bug38524.phpt (revision 610c7fbe)
1--TEST--
2Bug #38524 (strptime() does not initialize the internal date storage structure)
3--SKIPIF--
4<?php if (!function_exists('strptime')) echo "SKIP"; ?>
5--FILE--
6<?php
7	var_dump(strptime('2006-08-20', '%Y-%m-%d'));
8?>
9===DONE===
10--EXPECTF--
11array(9) {
12  ["tm_sec"]=>
13  int(0)
14  ["tm_min"]=>
15  int(0)
16  ["tm_hour"]=>
17  int(0)
18  ["tm_mday"]=>
19  int(20)
20  ["tm_mon"]=>
21  int(7)
22  ["tm_year"]=>
23  int(106)
24  ["tm_wday"]=>
25  int(0)
26  ["tm_yday"]=>
27  int(%d)
28  ["unparsed"]=>
29  string(0) ""
30}
31===DONE===
32