FastCGI fails with wrong error on HEAD request to non-existant file
| Bug #50168 | FastCGI fails with wrong error on HEAD request to non-existant file | ||||
|---|---|---|---|---|---|
| Submitted: | 2009-11-13 16:21 UTC | Modified: | 2009-11-30 16:01 UTC | ||
| From: | matthijs at spilgames dot com | Assigned: | dmitry (profile) | ||
| Status: | Closed | Package: | CGI/CLI related | ||
| PHP Version: | 5.2.11 | OS: | Linux | ||
| Private report: | No | CVE-ID: | None | ||
[2009-11-13 16:21 UTC] matthijs at spilgames dot com
Description: ------------ A HEAD request on a non-existant file causes a FastCGI child process to exit with a code 255 (or -1). Reproduce code: --------------- Perform a HEAD request against an URL handled by the FastCGI SAPI. No response will be returned and the child process will exit. If you attach GDB to the child process while doing above, it will display "Program exited with code 0377.". In my particular case the webserver responds as well by sending a '502 Bad Gateway' response. Expected result: ---------------- ~ $ curl -I 'http://www.example.com/void.php' HTTP/1.1 404 Not Found Server: nginx Date: Fri, 13 Nov 2009 16:14:00 GMT Content-Type: text/html Transfer-Encoding: chunked Connection: keep-alive Actual result: -------------- ~ $ curl -I 'http://www.example.com/void.php' HTTP/1.1 502 Bad Gateway Server: nginx Date: Fri, 13 Nov 2009 16:12:41 GMT Content-Type: text/html Content-Length: 138 Connection: keep-alive
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2009-11-14 01:24 UTC] jani@php.net
[2009-11-16 11:40 UTC] matthijs at spilgames dot com
[2009-11-16 16:26 UTC] jani@php.net
[2009-11-30 13:51 UTC] jani@php.net
[2009-11-30 14:43 UTC] dmitry@php.net