com php-src: Open opcache.error_log with 'a' flag : ext/opcache/zend_accelerator_debug.c

From: Date: Tue, 26 Nov 2019 06:29:27 +0000
Subject: com php-src: Open opcache.error_log with 'a' flag : ext/opcache/zend_accelerator_debug.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-109319@lists.php.net to get a copy of this message
Commit: 182f98a194e69ecdf4d5d590fd94abfe73c26b5a Author: avkarenow <avkarenow@tlen.pl> Tue, 26 Nov 2019 05:35:32 +0100 Committer: Dmitry Stogov <dmitry@zend.com> Tue, 26 Nov 2019 09:29:27 +0300 Parents: 0e20220cfce4c993ef047743f526ac97882636c2 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=182f98a194e69ecdf4d5d590fd94abfe73c26b5a Log: 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. Changed paths: M ext/opcache/zend_accelerator_debug.c Diff: diff --git a/ext/opcache/zend_accelerator_debug.c b/ext/opcache/zend_accelerator_debug.c index 991f2329da9..f91c269975b 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; }

« previous php.cvs (#109319) next »