From:             matthijs at spilgames dot com
Operating system: Linux
PHP version:      5.2.11
PHP Bug Type:     Reproducible crash
Bug description:  FastCGI crash on HEAD request

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 bug report at http://bugs.php.net/?id=50168&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=50168&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=50168&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=50168&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=50168&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=50168&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=50168&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=50168&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=50168&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=50168&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=50168&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=50168&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=50168&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=50168&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=50168&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=50168&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=50168&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=50168&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=50168&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=50168&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=50168&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=50168&r=mysqlcfg

Reply via email to