mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0: Fix Bug #69865 php-fpm does not close stderr when using syslog
This commit is contained in:
commit
9aad38038e
2 changed files with 10 additions and 0 deletions
4
NEWS
4
NEWS
|
@ -17,6 +17,10 @@ PHP NEWS
|
|||
. Fixed bug #73904 (php-cgi fails to load -c specified php.ini file). (Anatol)
|
||||
. Fixed bug #72898 (PHP_FCGI_CHILDREN is not included in phpinfo()). (Anatol)
|
||||
|
||||
- FPM:
|
||||
. Fixed bug #69865 (php-fpm does not close stderr when using syslog).
|
||||
(m6w6)
|
||||
|
||||
- GD:
|
||||
. Fixed bug #73968 (Premature failing of XBM reading). (cmb)
|
||||
|
||||
|
|
|
@ -73,6 +73,12 @@ int fpm_stdio_init_final() /* {{{ */
|
|||
return -1;
|
||||
}
|
||||
}
|
||||
#ifdef HAVE_SYSLOG_H
|
||||
else if (fpm_globals.error_log_fd == ZLOG_SYSLOG) {
|
||||
/* dup to /dev/null when using syslog */
|
||||
dup2(STDOUT_FILENO, STDERR_FILENO);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
zlog_set_launched();
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue