php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49766 FastCGI fails
Submitted: 2009-10-04 16:34 UTC Modified: 2009-10-04 19:54 UTC
From: binbash at b2host dot de Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 5.3.0 OS: CentOS 5.4 x86_x64 Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: binbash at b2host dot de
New email:
PHP Version: OS:

 

 [2009-10-04 16:34 UTC] binbash at b2host dot de
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 />


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-10-04 18:02 UTC] jani@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2009-10-04 18:50 UTC] binbash at b2host dot de
I tested now with snapshot, but it didn't fix anything.
 [2009-10-04 19:07 UTC] lbarnaud@php.net
Looks like a problem in content length and/or packing of some value in your script.

Please try with this : https://pear.php.net/pepr/pepr-proposal-show.php?&id=579
 [2009-10-04 19:52 UTC] binbash at b2host dot de
Thanks Arnaud that fixed it, so actually no php bug but a bug in my script. :-/ Sorry for any inconvenience you had.
 [2009-10-04 19:54 UTC] pajoye@php.net
No bug > bogus.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 12:01:30 2024 UTC