From: Dmitry Stogov Date: Mon, 17 Mar 2014 21:32:03 +0000 (+0400) Subject: Fixed error logging with date X-Git-Tag: POST_PHPNG_MERGE~412^2~282 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=811a523c306c1c08fc892ed1e76847ca9693448e;p=php Fixed error logging with date --- diff --git a/main/main.c b/main/main.c index 72092cca64..0f8a029b51 100644 --- a/main/main.c +++ b/main/main.c @@ -641,7 +641,7 @@ PHPAPI void php_log_err(char *log_message TSRMLS_DC) #else error_time_str = php_format_date("d-M-Y H:i:s e", 13, error_time, 1 TSRMLS_CC); #endif - len = spprintf(&tmp, 0, "[%s] %s%s", error_time_str, log_message, PHP_EOL); + len = spprintf(&tmp, 0, "[%s] %s%s", error_time_str->val, log_message, PHP_EOL); #ifdef PHP_WIN32 php_flock(fd, 2); #endif