From:             daniel at produktion203 dot se
Operating system: FreeBSD 9.0-RELEASE
PHP version:      5.4.8
Package:          FPM related
Bug Type:         Bug
Bug description:errors outputed to stderr instead of logfile using fastcgi

Description:
------------
PHP.ini values:
error_reporting = E_ALL & ~E_NOTICE
log_errors = On
display_errors = Off
error_log = /var/log/php-error.log

Nginx fastcgi config:
location ~ \.php$ {
                        fastcgi_pass   127.0.0.1:9000;
                        fastcgi_index  index.php;
                        fastcgi_param  SCRIPT_FILENAME 
/home/www/xxxxxxx.xx$fastcgi_script_name;
                        include        fastcgi_params;
                }


Using this pool-configuration:
[xx-xx-widget]

listen = 127.0.0.1:9000

user = xx-xx
group = xx-xx

pm = static
pm.max_children = 50
pm.start_servers = 20
pm.min_spare_servers = 5
pm.max_spare_servers = 35


pm.status_path = /fpm-status.php

php_admin_value[open_basedir] =
/var/tmp:/home/www/apc:/home/www/xxxxxxxx.xx


Expected result:
----------------
/var/log/php-error.log:
PHP Warning: 
file_get_contents(/usr/home/www/xxxxxxx.xxx/assets/img/widget/button_large_red.png):
failed to open stream: No such file or directory in
/usr/home/www/xxxxxxx.xx/button.php on line 67

Actual result:
--------------
/var/log/nginx-error.log:
2012/11/18 21:27:03 [error] 82087#0: *146061423 FastCGI sent in stderr:
"PHP message: PHP Warning: 
file_get_contents(/usr/home/www/xxxxxxx.xxx/assets/img/widget/button_large_red.png):
failed to open stream: No such file or directory in
/usr/home/www/xxxxxxx.xx/button.php on line 67" while reading response
header from upstream, client: xxx.xxx.xxx.xxx, server: widget.xxxxxxx.xx,
request: "GET /blogcounter/image?http://xxxxxxxx.blogspot.com/ HTTP/1.1",
upstream: "fastcgi://127.0.0.1:9000", host: "widget.xxxxxxx.xx", referrer:
"http://xxxxxx.blogspot.xxxx/";

-- 
Edit bug report at https://bugs.php.net/bug.php?id=63555&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=63555&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=63555&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=63555&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=63555&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=63555&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=63555&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=63555&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=63555&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=63555&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=63555&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=63555&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=63555&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=63555&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63555&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=63555&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=63555&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=63555&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63555&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=63555&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=63555&r=mysqlcfg

Reply via email to