From:             binbash at b2host dot de
Operating system: CentOS 5.4 x86_x64 Linux
PHP version:      5.3.0
PHP Bug Type:     CGI related
Bug description:  FastCGI fails

Description:
------------
Hi, I wrote a small testprogram to test performance with php-cgi running
in fastcgi mode and keep getting Errors. When I run it, the program fails
first after 137 requests. 

The test program continues then and succeeds on the next requests but
fails totally after 273 Requests. No response comes back from the php-cgi
binary.

I started php-cgi with following command:

/opt/www/php/bin/php-cgi -b 127.0.0.1:9000

Environment Variables for php-cgi:

PHP_FCGI_CHILDREN = 27
PHP_FCGI_MAX_REQUESTS = 10000000

Reproduce code:
---------------
You can find the test program here:
http://www.pastie.org/641216

I tested with following test.php:
<?php
echo "Hello World!\n";
phpinfo();
?>

Expected result:
----------------
The same output for all requests without any errors.

Actual result:
--------------
>From the cgi binary I get following response for Request 137

type: text/html

<br />
<b>Warning</b>:  Unknown: Filename cannot be empty in <b>Unknown</b> on
line <b>0</b><br />
<br />
<b>Fatal error</b>:  Unknown: Failed opening required ''
(include_path='.:/opt/www/php_5.3.0/lib/php') in <b>Unknown</b> on line
<b>0</b><br />


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

Reply via email to