summaryrefslogtreecommitdiff
path: root/main/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/main.c')
-rw-r--r--main/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/main.c b/main/main.c
index 435eb43762..06d208ec61 100644
--- a/main/main.c
+++ b/main/main.c
@@ -250,7 +250,7 @@ void php_log_err(char *log_message)
return;
}
#endif
- log_file = fopen(PG(error_log), "a");
+ log_file = PHP_FOPEN(PG(error_log), "a");
if (log_file != NULL) {
time(&error_time);
strftime(error_time_str, 128, "%d-%b-%Y %H:%M:%S", localtime_r(&error_time, &tmbuf));