summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoravkarenow <avkarenow@tlen.pl>2019-11-26 05:35:32 +0100
committerDmitry Stogov <dmitry@zend.com>2019-11-26 09:29:27 +0300
commit182f98a194e69ecdf4d5d590fd94abfe73c26b5a (patch)
treea7a5b4a8b31ae90e2f2ece7790eeedaea82283d9
parent0e20220cfce4c993ef047743f526ac97882636c2 (diff)
downloadphp-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.c2
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;
}