Skip to content

Commit 182f98a

Browse files
avkarenowdstogov
authored andcommitted
Open opcache.error_log with 'a' flag
When opcache.error_log is set to log to file the read flag is not needed and used.
1 parent 0e20220 commit 182f98a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/zend_accelerator_debug.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void zend_accel_error(int type, const char *format, ...)
4747

4848
fLog = stderr;
4949
} else {
50-
fLog = fopen(ZCG(accel_directives).error_log, "a+");
50+
fLog = fopen(ZCG(accel_directives).error_log, "a");
5151
if (!fLog) {
5252
fLog = stderr;
5353
}

0 commit comments

Comments
 (0)