]> granicus.if.org Git - php/commitdiff
MFH: Fix EOLs under windows
authorIlia Alshanetsky <iliaa@php.net>
Wed, 17 Aug 2005 15:34:24 +0000 (15:34 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 17 Aug 2005 15:34:24 +0000 (15:34 +0000)
main/main.c

index 8a5eeef2e7b6038d85678646ea163cf350154321..2f77abe79b855517915bbe5b3b95f2cbf07543bb 100644 (file)
@@ -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));