mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
fixed incompatible pointer in phpdbg on win64
This commit is contained in:
parent
ddf733fa69
commit
00c7b973bb
1 changed files with 2 additions and 1 deletions
|
@ -290,8 +290,9 @@ PHPDBG_API int phpdbg_rlog(FILE *fp, const char *fmt, ...) { /* {{{ */
|
|||
if (gettimeofday(&tp, NULL) == SUCCESS) {
|
||||
char friendly[100];
|
||||
char *format = NULL, *buffer = NULL;
|
||||
const time_t tt = tp.tv_sec;
|
||||
|
||||
strftime(friendly, 100, "%a %b %d %T.%%04d %Y", localtime(&tp.tv_sec));
|
||||
strftime(friendly, 100, "%a %b %d %T.%%04d %Y", localtime(&tt));
|
||||
asprintf(
|
||||
&buffer, friendly, tp.tv_usec/1000);
|
||||
asprintf(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue