Bug #66239 [Opn]: Fpm won't error_log to syslog, php works fine

From: Date: Fri, 06 Dec 2013 11:47:09 +0000
Subject: Bug #66239 [Opn]: Fpm won't error_log to syslog, php works fine
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183181@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66239&edit=1

 ID:                 66239
 Updated by:         krakjoe@php.net
 Reported by:        sjon at hortensius dot net
 Summary:            Fpm won't error_log to syslog, php works fine
 Status:             Open
 Type:               Bug
 Package:            FPM related
 Operating System:   archlinux
 PHP Version:        5.5.6
 Block user comment: N
 Private report:     N

 New Comment:

Why depend on wp->config->chroot ?

Can you think of a case where it is reasonable for "syslog" to be expanded ?


Previous Comments:
------------------------------------------------------------------------
[2013-12-06 09:52:20] tony2001@php.net

But why do you change fpm_evaluate_full_path()? It's used everywhere and
php_value/php_admin_value is just one use case.
I believe you should be changing the checks in this 'if' instead:
        /* env[], php_value[], php_admin_values[] */
        if (!wp->config->chroot) {

------------------------------------------------------------------------
[2013-12-06 08:04:36] krakjoe@php.net

fpm fails to check for "syslog" before expanding the path, patch attached

------------------------------------------------------------------------
[2013-12-06 08:04:05] krakjoe@php.net

The following patch has been added/updated:

Patch Name: fpm-syslog-bug.patch
Revision:   1386317045
URL:        https://bugs.php.net/patch-display.php?bug=66239&patch=fpm-syslog-bug.patch&revision=1386317045

------------------------------------------------------------------------
[2013-12-05 12:57:40] sjon at hortensius dot net

Description:
------------
I put this in php-fpm.conf:

php_admin_value[error_log] = syslog

It results in 

> php-fpm -tt 2>&1|grep error_l
NOTICE: 	php_admin_value[error_log] = /usr/syslog

Obviously, this doesn't work. If I put this value in my php.ini however, it works fine!



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=66239&edit=1


Thread (11 messages)

« previous php.bugs (#183181) next »