com php-src: fixed incompatible pointer in phpdbg on win64: sapi/phpdbg/phpdbg_utils.c

From: Date: Tue, 24 Dec 2013 20:08:33 +0000
Subject: com php-src: fixed incompatible pointer in phpdbg on win64: sapi/phpdbg/phpdbg_utils.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-75456@lists.php.net to get a copy of this message
Commit: 00c7b973bb0b58161c08a4fee65f7afa0d5094d3 Author: Anatol Belski <ab@php.net> Tue, 24 Dec 2013 21:08:33 +0100 Parents: ddf733fa6974e6ada3aec52005611f9b4647beb5 Branches: PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=00c7b973bb0b58161c08a4fee65f7afa0d5094d3 Log: fixed incompatible pointer in phpdbg on win64 Changed paths: M sapi/phpdbg/phpdbg_utils.c Diff: diff --git a/sapi/phpdbg/phpdbg_utils.c b/sapi/phpdbg/phpdbg_utils.c index 86c17a7..7b2000d 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(

« previous php.cvs (#75456) next »