From: Derick Rethans Date: Fri, 25 Nov 2011 14:06:55 +0000 (+0000) Subject: - Fixed bug #60373 (Startup errors with log_errors on cause segfault). X-Git-Tag: php-5.5.0alpha1~813 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e6bf9f3f4a91fbdf6236e64dd0075e393b8d876;p=php - Fixed bug #60373 (Startup errors with log_errors on cause segfault). --- diff --git a/main/main.c b/main/main.c index 40c60298ca..0ba60716a3 100644 --- a/main/main.c +++ b/main/main.c @@ -575,7 +575,7 @@ PHPAPI void php_log_err(char *log_message TSRMLS_DC) char *error_time_str; time(&error_time); - error_time_str = php_format_date("d-M-Y H:i:s", 11, error_time, 1 TSRMLS_CC); + error_time_str = php_format_date("d-M-Y H:i:s e", 13, error_time, 0 TSRMLS_CC); len = spprintf(&tmp, 0, "[%s] %s%s", error_time_str, log_message, PHP_EOL); #ifdef PHP_WIN32 php_flock(fd, 2);