Bug #76922 [NEW]: FastCGI terminates connection immediately after FCGI_GET_VALUES

From: Date: Sun, 23 Sep 2018 15:02:18 +0000
Subject: Bug #76922 [NEW]: FastCGI terminates connection immediately after FCGI_GET_VALUES
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217207@lists.php.net to get a copy of this message
From: webmaster_20180923 at cubiclesoft dot com Operating system: N/A PHP version: 7.2.10 Package: FPM related Bug Type: Bug Bug description:FastCGI terminates connection immediately after FCGI_GET_VALUES Description: ------------ Sending a valid FCGI_GET_VALUES record results in a valid FCGI_GET_VALUES_RESULT response BUT the connection is terminated immediately afterwards. If a FastCGI enabled application wants to know what the limits of the FastCGI server are before beginning to make requests, then this behavior requires two separate FastCGI connections - one to obtain the information and another to make the actual request. In addition, the conditions of a general-purpose FastCGI server can change between connections. FCGI_GET_VALUES is not considered to be an actual request as it is a management record type AND the FastCGI specification mandates that the client drives server connection/disconnection (not the other way around). As a result, PHP's behavior is not compliant with the FastCGI spec. Test script: --------------- Analysis: The fcgi_read_request() function returns 0 back to the caller (fcgi_accept_request()) when handling FCGI_GET_VALUES. That, in turn, results in calling fcgi_close(), which terminates the connection. -- Edit bug report at https://bugs.php.net/bug.php?id=76922&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76922&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76922&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76922&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76922&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76922&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76922&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76922&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76922&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76922&r=support Expected behavior: https://bugs.php.net/fix.php?id=76922&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76922&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76922&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76922&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76922&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76922&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76922&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76922&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76922&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76922&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76922&r=mysqlcfg

« previous php.bugs (#217207) next »