From: avkarenow Date: Tue, 26 Nov 2019 04:35:32 +0000 (+0100) Subject: Open opcache.error_log with 'a' flag X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=182f98a194e69ecdf4d5d590fd94abfe73c26b5a;p=php 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. --- 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; }