diff options
Diffstat (limited to 'ext/standard/tests/time/bug38524.phpt')
| -rwxr-xr-x | ext/standard/tests/time/bug38524.phpt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/ext/standard/tests/time/bug38524.phpt b/ext/standard/tests/time/bug38524.phpt new file mode 100755 index 000000000..e9ccaaf38 --- /dev/null +++ b/ext/standard/tests/time/bug38524.phpt @@ -0,0 +1,29 @@ +--TEST-- +Bug #38524 (strptime() does not initialize the internal date storage structure) +--FILE-- +<?php + var_dump(strptime('2006-08-20', '%Y-%m-%d')); +?> +===DONE=== +--EXPECTF-- +array(9) { + ["tm_sec"]=> + int(0) + ["tm_min"]=> + int(0) + ["tm_hour"]=> + int(0) + ["tm_mday"]=> + int(20) + ["tm_mon"]=> + int(7) + ["tm_year"]=> + int(106) + ["tm_wday"]=> + int(0) + ["tm_yday"]=> + int(%d) + ["unparsed"]=> + string(0) "" +} +===DONE=== |
