|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2003-06-13 07:46 UTC] sniper@php.net
  [2003-06-18 10:29 UTC] iliaa@php.net
  [2003-06-29 15:07 UTC] shane@php.net
  [2003-06-29 18:16 UTC] sniper@php.net
  [2003-07-03 04:11 UTC] mweilguni at sime dot com
  [2003-07-03 05:16 UTC] sniper@php.net
  [2003-08-05 17:09 UTC] iliaa@php.net
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 18:00:01 2025 UTC | 
Description: ------------ We use PHP 4.3.2 + FastCGI + Apache/mod_fcgi. The PHP fastcgi server is started in our setup with 8 preforked php-servers, so after a restart the process tree will look like: \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 so far it's ok. when I request for a non-existant script, I get the error "No input file specified.". That's ok too. But after that, one server process died: \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 After requesting a non-existant script 8 times all servers are gone, only the master server process remains: \_ /usr/bin/php-fcgi-4.3.2 I checked the file sapi/cgi/cgi_main.c and it seems the error is in line 1473: if (retval == FAILURE && file_handle.handle.fp == NULL) { SG(sapi_headers).http_response_code = 404; PUTS("No input file specified.\n"); php_request_shutdown((void *) 0); php_module_shutdown(TSRMLS_C); return FAILURE; } IMO this should be: if (retval == FAILURE && file_handle.handle.fp == NULL) { SG(sapi_headers).http_response_code = 404; PUTS("No input file specified.\n"); #if PHP_FASTCGI continue; #endif php_request_shutdown((void *) 0); php_module_shutdown(TSRMLS_C); return FAILURE; } It seems to work fine, but I'm not really sure if this is right.