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--EXPECTF-- 10array(9) { 11 ["tm_sec"]=> 12 int(0) 13 ["tm_min"]=> 14 int(0) 15 ["tm_hour"]=> 16 int(0) 17 ["tm_mday"]=> 18 int(20) 19 ["tm_mon"]=> 20 int(7) 21 ["tm_year"]=> 22 int(106) 23 ["tm_wday"]=> 24 int(0) 25 ["tm_yday"]=> 26 int(%d) 27 ["unparsed"]=> 28 string(0) "" 29} 30