Skip to content

Commit 00c7b97

Browse files
committed
fixed incompatible pointer in phpdbg on win64
1 parent ddf733f commit 00c7b97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sapi/phpdbg/phpdbg_utils.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,9 @@ PHPDBG_API int phpdbg_rlog(FILE *fp, const char *fmt, ...) { /* {{{ */
290290
if (gettimeofday(&tp, NULL) == SUCCESS) {
291291
char friendly[100];
292292
char *format = NULL, *buffer = NULL;
293+
const time_t tt = tp.tv_sec;
293294

294-
strftime(friendly, 100, "%a %b %d %T.%%04d %Y", localtime(&tp.tv_sec));
295+
strftime(friendly, 100, "%a %b %d %T.%%04d %Y", localtime(&tt));
295296
asprintf(
296297
&buffer, friendly, tp.tv_usec/1000);
297298
asprintf(

0 commit comments

Comments
 (0)