]> granicus.if.org Git - php/commitdiff
Open opcache.error_log with 'a' flag
authoravkarenow <avkarenow@tlen.pl>
Tue, 26 Nov 2019 04:35:32 +0000 (05:35 +0100)
committerDmitry Stogov <dmitry@zend.com>
Tue, 26 Nov 2019 06:29:27 +0000 (09:29 +0300)
When opcache.error_log is set to log to file the read flag is not needed and used.

ext/opcache/zend_accelerator_debug.c

index 991f2329da9a400a11247b1fafb27a440c1c1d4f..f91c269975b8e0fa6b13904a45aafc819caef5af 100644 (file)
@@ -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;
                }