From 58feb4426af373e613d964d3129a29d89071c7c4 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 17 Aug 2005 15:34:24 +0000 Subject: [PATCH] MFH: Fix EOLs under windows --- main/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/main.c b/main/main.c index 8a5eeef2e7..2f77abe79b 100644 --- a/main/main.c +++ b/main/main.c @@ -378,7 +378,7 @@ PHPAPI void php_log_err(char *log_message TSRMLS_DC) return; } #endif - log_file = VCWD_FOPEN(PG(error_log), "a"); + log_file = VCWD_FOPEN(PG(error_log), "ab"); if (log_file != NULL) { time(&error_time); strftime(error_time_str, sizeof(error_time_str), "%d-%b-%Y %H:%M:%S", php_localtime_r(&error_time, &tmbuf)); -- 2.40.0