From: Ilia Alshanetsky Date: Wed, 17 Aug 2005 15:34:24 +0000 (+0000) Subject: MFH: Fix EOLs under windows X-Git-Tag: php-4.4.1RC1~59 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=58feb4426af373e613d964d3129a29d89071c7c4;p=php MFH: Fix EOLs under windows --- 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));