diff options
author | avkarenow <avkarenow@tlen.pl> | 2019-11-26 05:35:32 +0100 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2019-11-26 09:29:27 +0300 |
commit | 182f98a194e69ecdf4d5d590fd94abfe73c26b5a (patch) | |
tree | a7a5b4a8b31ae90e2f2ece7790eeedaea82283d9 | |
parent | 0e20220cfce4c993ef047743f526ac97882636c2 (diff) | |
download | php-git-182f98a194e69ecdf4d5d590fd94abfe73c26b5a.tar.gz |
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.
-rw-r--r-- | ext/opcache/zend_accelerator_debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |