summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_utils.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2013-12-24 21:08:33 +0100
committerAnatol Belski <ab@php.net>2013-12-24 21:08:33 +0100
commit00c7b973bb0b58161c08a4fee65f7afa0d5094d3 (patch)
treeee74cea8d069c408cf28e9347b4cc2030cab93f3 /sapi/phpdbg/phpdbg_utils.c
parentddf733fa6974e6ada3aec52005611f9b4647beb5 (diff)
downloadphp-git-00c7b973bb0b58161c08a4fee65f7afa0d5094d3.tar.gz
fixed incompatible pointer in phpdbg on win64
Diffstat (limited to 'sapi/phpdbg/phpdbg_utils.c')
-rw-r--r--sapi/phpdbg/phpdbg_utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sapi/phpdbg/phpdbg_utils.c b/sapi/phpdbg/phpdbg_utils.c
index 86c17a71be..7b2000da0e 100644
--- a/sapi/phpdbg/phpdbg_utils.c
+++ b/sapi/phpdbg/phpdbg_utils.c
@@ -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(