From 182f98a194e69ecdf4d5d590fd94abfe73c26b5a Mon Sep 17 00:00:00 2001 From: avkarenow Date: Tue, 26 Nov 2019 05:35:32 +0100 Subject: [PATCH] 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. --- ext/opcache/zend_accelerator_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/opcache/zend_accelerator_debug.c b/ext/opcache/zend_accelerator_debug.c index 991f2329da..f91c269975 100644 --- a/ext/opcache/zend_accelerator_debug.c +++ b/ext/opcache/zend_accelerator_debug.c @@ -47,7 +47,7 @@ void zend_accel_error(int type, const char *format, ...) fLog = stderr; } else { - fLog = fopen(ZCG(accel_directives).error_log, "a+"); + fLog = fopen(ZCG(accel_directives).error_log, "a"); if (!fLog) { fLog = stderr; } -- 2.50.1