const char *s;
int len;
+ memset(&ts, 0, sizeof(ts));
+
for (i = 0; i < count; i++) {
cdf_print_property_name(buf, sizeof(buf), info[i].pi_id);
switch (info[i].pi_type) {
return -1;
} else {
char *c, *ec;
+ const time_t sec = ts.tv_sec;
if (cdf_timestamp_to_timespec(&ts, tp) == -1) {
return -1;
}
- c = cdf_ctime(&ts.tv_sec);
+ c = cdf_ctime(&sec);
if ((ec = strchr(c, '\n')) != NULL)
*ec = '\0';
var_dump($results);
?>
--EXPECTF--
-array(7) {
+array(8) {
["%s/resources/dir.zip"]=>
string(15) "application/zip"
["%s/resources/test.awk"]=>
string(15) "application/pdf"
["%s/resources/test.png"]=>
string(9) "image/png"
+ ["%s/resources/test.ppt"]=>
+ string(29) "application/vnd.ms-powerpoint"
}