ID:               50168
 User updated by:  matthijs at spilgames dot com
 Reported By:      matthijs at spilgames dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         Reproducible crash
 Operating System: Linux
 PHP Version:      5.2.11
 New Comment:

I should have mentioned that most webservers do a lookup on the
filesystem and return a 404 by themselves. My webserver does not in this
configuration and for lighttpd you'd have to use the 'check-local'
parameter for your fastcgi configuration to get the same behaviour.

Your question to WHAT actually is in the script: there is no script!
That's the whole point. If I'd do a GET request PHP would be returning
the well known 'No input file specified.' message together with a 404
header. For a HEAD request I'd expect the 404 header without the
message. Instead of returning the header the FastCGI process bails out
with a -1 exit code. It's not a segmentation fault, but it's still a
'crash' of one of the child processes in the sense that it exits
wrongly.


Previous Comments:
------------------------------------------------------------------------

[2009-11-14 01:24:38] j...@php.net

Works fine for me. Same PHP version, FastCGI, only difference is that I
use lighttpd. Where do you get the idea anything is actually crashing?
Also, WHAT is in that script of yours?

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

[2009-11-13 16:21:03] 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



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


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

Reply via email to