Bug #69850 [NEW]: fpm don't receive a script name

From: Date: Tue, 16 Jun 2015 16:16:04 +0000
Subject: Bug #69850 [NEW]: fpm don't receive a script name
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-193571@lists.php.net to get a copy of this message
From:             pascal007 at gmx dot ch
Operating system: Debian 7.8
PHP version:      7.0.0alpha1
Package:          FPM related
Bug Type:         Bug
Bug description:fpm don't receive a script name

Description:
------------
When I use php-fpm together with the PHP7 alpha1 on an nginx server I
get a 502 Bad Gateway from nginx.

In the nginx log I see this error:

[error] 1889#0: *4 recv() failed (104: Connection reset by peer) while
reading response header from upstream, client: xxx.xxx.xxx.20, server:
localhost, request: "GET /info.php HTTP/1.1", upstream:
"fastcgi://unix:/var/run/php70-fpm.sock:", host: "xxx.xxx.xxx.21"

If I look into the log of the php-fpm service I see this:

WARNING: pid 2582, fpm_request_check_timed_out(), line 277: [pool www0]
child 2813, script '' (request: " ") execution timed out (120.018160
sec), terminating

If I run the same configuration with PHP 5.5.x and 5.6.x everything
works fine. Just with the 7.0 alpha 1 this problem happens. PHP 7
command line SAPI works fine.

Test script:
---------------
Nginx fastcgi_params I use:

fastcgi_param   QUERY_STRING            $query_string;
fastcgi_param   REQUEST_METHOD          $request_method;
fastcgi_param   CONTENT_TYPE            $content_type;
fastcgi_param   CONTENT_LENGTH          $content_length;

fastcgi_param   SCRIPT_FILENAME        
$document_root$fastcgi_script_name;
fastcgi_param   SCRIPT_NAME             $fastcgi_script_name;
fastcgi_param   PATH_INFO               $fastcgi_script_name;
fastcgi_param   REQUEST_URI             $request_uri;
fastcgi_param   DOCUMENT_URI            $document_uri;
fastcgi_param   DOCUMENT_ROOT           $document_root;
fastcgi_param   SERVER_PROTOCOL         $server_protocol;

fastcgi_param   GATEWAY_INTERFACE       CGI/1.1;
fastcgi_param   SERVER_SOFTWARE         nginx/$nginx_version;

fastcgi_param   REMOTE_ADDR             $remote_addr;
fastcgi_param   REMOTE_PORT             $remote_port;
fastcgi_param   SERVER_ADDR             $server_addr;
fastcgi_param   SERVER_PORT             $server_port;
fastcgi_param   SERVER_NAME             $server_name;

fastcgi_param   HTTPS                   $https;

# PHP only, required if PHP was built with --enable-force-cgi-redirect
fastcgi_param   REDIRECT_STATUS         200;

Expected result:
----------------
php-fpm should get a script name to execute.

Actual result:
--------------
php-fpm does not get a script name to execute and times out.

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



Thread (11 messages)

« previous php.bugs (#193571) next »