Edit report at https://bugs.php.net/bug.php?id=49859&edit=1

 ID:                 49859
 Comment by:         strayer at olle-orks dot org
 Reported by:        loki5100-nospam at yahoo dot fr
 Summary:            PHP_FCGI_CHILDREN not work
 Status:             Not a bug
 Type:               Bug
 Package:            PHP options/info functions
 Operating System:   Windows Vista
 PHP Version:        5.3.0
 Block user comment: N
 Private report:     N

 New Comment:

I just discovered this while checking out xcache and this really doesn't 
work... 
phpinfo() even shows the env var in its output!

cmd:
# set PHP_FCGI_CHILDREN=5
# set PHP_FCGI_MAX_REQUESTS=3
# php-cgi -b 127.0.0.1:9000

Process Explorer shows only one process with one thread.

Ran phpinfo() via browser:

Environment
PHP_FCGI_CHILDREN       5
PHP_FCGI_MAX_REQUESTS   3

It looks like php-cgi just ignores the PHP_FCGI_CHILDREN, since 
PHP_FCGI_MAX_REQUESTS seems to be working as intended.


Previous Comments:
------------------------------------------------------------------------
[2009-10-19 14:40:16] j...@php.net

You have just set the environment variables in wrong place / wrong way. (no 
idea how you do that in windows, but this works just fine under *nix) 

------------------------------------------------------------------------
[2009-10-13 08:00:52] loki5100-nospam at yahoo dot fr

Description:
------------
i found a bug in PHP-cgi.exe

I use Php-cgi as fastCgi

php-cgi.exe -b host:port

i set in environement variables this :

PHP_FCGI_CHILDREN=8
PHP_FCGI_MAX_REQUESTS=1000

in the task manager i see only one  Php-cgi.exe
process (when normaly i must see 9 process no?)
and after i send more than 1000 request the
php-cgi.exe process died ! and i must manually
restart it! that not a normal behavior when 
PHP_FCGI_CHILDREN is > 1

Reproduce code:
---------------
set in environement variables :
PHP_FCGI_CHILDREN=8
PHP_FCGI_MAX_REQUESTS=1000

exec: php-cgi.exe -b 127.0.0.1:9000

see in task manager only one Php-cgi.exe process

send more than 1000 request to php-cgi.exe, the process will die and you will 
need to manually restart it ! 




Expected result:
----------------
process must be restarted automatiquely

Actual result:
--------------
the main process die and you need to manually restart it ! 



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



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

Reply via email to