Re: com php-src: Fix Bug #67530 error_log=syslog ignored: sapi/fpm/fpm/fpm_stdio.c
| From: | Ferenc Kovacs | Date: | Mon, 30 Jun 2014 16:41:39 +0000 |
| Subject: | Re: com php-src: Fix Bug #67530 error_log=syslog ignored: sapi/fpm/fpm/fpm_stdio.c | ||
| References: | 1 2 3 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-79159@lists.php.net to get a copy of this message | ||
On Mon, Jun 30, 2014 at 1:27 PM, Julien Pauli <jpauli@php.net> wrote:
> On Mon, Jun 30, 2014 at 12:53 PM, Ferenc Kovacs <tyra3l@gmail.com> wrote:
> >
> > On Mon, Jun 30, 2014 at 12:09 PM, Zeev Suraski <zeev@zend.com> wrote:
> >>
> >> Hey Remi,
> >>
> >> Unless I'm missing something, PHP < 5.6 doesn't have
> >> fpm_globals.force_stderr, so this update breaks the build for both 5.4
> and
> >> 5.5...
> >>
> >> Can you revert?
> >>
> >> Thanks,
> >>
> >> Zeev
> >>
> >> > -----Original Message-----
> >> > From: Remi Collet [mailto:remi@php.net]
> >> > Sent: Friday, June 27, 2014 10:46 AM
> >> > To: php-cvs@lists.php.net
> >> > Subject: [PHP-CVS] com php-src: Fix Bug #67530 error_log=syslog
> ignored:
> >> > sapi/fpm/fpm/fpm_stdio.c
> >> >
> >> > Commit: a0ecb3794f00e65cd2a073b2073e32d6c2fb7180
> >> > Author: Remi Collet <remi@php.net> Fri, 27 Jun 2014
> 09:45:53
> >> > +0200
> >> > Parents: 2db96fea2d87bf3e24760e846b4a8633bd158330
> >> > Branches: PHP-5.4 PHP-5.5 PHP-5.6 master
> >> >
> >> > Link: http://git.php.net/?p=php-
> >> > src.git;a=commitdiff;h=a0ecb3794f00e65cd2a073b2073e32d6c2fb7180
> >> >
> >> > Log:
> >> > Fix Bug #67530 error_log=syslog ignored
> >> >
> >> > As for Bug #64915
> >> > Systemd use --nodaemonize but need to error_log to file or syslog to
> be
> >> > honoured
> >> >
> >> > Bugs:
> >> > https://bugs.php.net/67530
> >> > https://bugs.php.net/64915
> >> >
> >> > Changed paths:
> >> > M sapi/fpm/fpm/fpm_stdio.c
> >> >
> >> >
> >> > Diff:
> >> > diff --git a/sapi/fpm/fpm/fpm_stdio.c b/sapi/fpm/fpm/fpm_stdio.c index
> >> > d81e101..769d3a6 100644
> >> > --- a/sapi/fpm/fpm/fpm_stdio.c
> >> > +++ b/sapi/fpm/fpm/fpm_stdio.c
> >> > @@ -268,7 +268,11 @@ int fpm_stdio_open_error_log(int reopen) /* {{{
> */
> >> > if (!strcasecmp(fpm_global_config.error_log, "syslog")) {
> >> > openlog(fpm_global_config.syslog_ident, LOG_PID |
> >> > LOG_CONS, fpm_global_config.syslog_facility);
> >> > fpm_globals.error_log_fd = ZLOG_SYSLOG;
> >> > +#if HAVE_UNISTD_H
> >> > + if (fpm_global_config.daemonize ||
> (!isatty(STDERR_FILENO)
> >> > &&
> >> > +!fpm_globals.force_stderr)) { #else
> >> > if (fpm_global_config.daemonize) {
> >> > +#endif
> >> > zlog_set_fd(fpm_globals.error_log_fd);
> >> > }
> >> > return 0;
> >> >
> >> >
> >> > --
> >> > PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit:
> >> > http://www.php.net/unsub.php
> >>
> >> --
> >> PHP CVS Mailing List (http://www.php.net/)
> >> To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >
> > Hi,
> >
> > I can verify and I also added --enable-fpm to our travis tests(>=5.5) so
> we
> > catch this sooner next time:
> > https://travis-ci.org/php/php-src/builds/28766199
> > AFAIK Remi will be out of office until 7th, so he won't be able to
> revert it
> > ASAP.
> > I've CCed Stas and Julien so that they can decide that we wanna fix
> > properly, or simply revert. (I would be +1 on reverting right now and
> > figuring out the proper fix later),
>
> That's the right choice to me.
>
> Julien
>
Ok, I've reverted it for now.
--
Ferenc Kovács
@Tyr43l - http://tyrael.hu