]> granicus.if.org Git - php/commitdiff
Fix EOLs under winblows
authorfoobar <sniper@php.net>
Wed, 17 Aug 2005 07:52:17 +0000 (07:52 +0000)
committerfoobar <sniper@php.net>
Wed, 17 Aug 2005 07:52:17 +0000 (07:52 +0000)
main/main.c

index a809defc002e14c0f7a956409a2ffb779202f097..6bc2a45f96623d33a0c784af3e2ce8e1fd69e1fb 100644 (file)
@@ -470,7 +470,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));