mirror of
https://github.com/php/php-src.git
synced 2026-03-26 01:02:25 +01:00
Fixed Bug #64915 (error_log ignored when daemonize=0)
Use configured error_log file when stderr is not a tty. So only use tty during interactive debug run.
This commit is contained in:
3
NEWS
3
NEWS
@@ -2,6 +2,9 @@ PHP NEWS
|
||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||
?? ??? 2013, PHP 5.4.17
|
||||
|
||||
- FPM:
|
||||
. Fixed Bug #64915 (error_log ignored when daemonize=0). (Remi)
|
||||
|
||||
?? ??? 2013, PHP 5.4.16
|
||||
|
||||
- Core:
|
||||
|
||||
@@ -291,7 +291,11 @@ int fpm_stdio_open_error_log(int reopen) /* {{{ */
|
||||
fd = fpm_globals.error_log_fd; /* for FD_CLOSEXEC to work */
|
||||
} else {
|
||||
fpm_globals.error_log_fd = fd;
|
||||
#if HAVE_UNISTD_H
|
||||
if (fpm_global_config.daemonize || !isatty(STDERR_FILENO)) {
|
||||
#else
|
||||
if (fpm_global_config.daemonize) {
|
||||
#endif
|
||||
zlog_set_fd(fpm_globals.error_log_fd);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user