|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23664 FastCGI -b: !FCGX_IsCGI()
Submitted: 2003-05-16 15:56 UTC Modified: 2003-06-29 15:46 UTC
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: krip at OpenIsis dot org Assigned: shane
Status: Closed Package: CGI/CLI related
PHP Version: 4.3.2RC3 OS: any *nix
Private report: No CVE-ID:
 [2003-05-16 15:56 UTC] krip at OpenIsis dot org
nice to see that
#21367  FastCGI -b option error
is "closed", however, it's still not working:
the fastcgi is not detected in FCGX_IsCGI,
because FCGI_LISTENSOCK_FILENO (#defined to 0)
is no listening socket; it's just plain stdin :)

a close(0); in cgi_main.c, if (bindpath) { ...

of course fixes this.

just one question: did you test this even once
before declaring #21367 closed,
and how come it worked ?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-16 16:04 UTC]
Add your comments to the old bugreport, no need to open a new one.
 [2003-05-16 16:14 UTC] krip at OpenIsis dot org
hey derick, didn't you read?
just like sniper declared the initial submission #21303
of #21367 as bogus (not a php error)?

This one's a completely different topic!
The old bug is closed and was a different one:
there was no b in OPTSTRING.
This one's about file descriptors.

If you still think this should be appended to #21367,
then do you want change it's status back to open!?
Although it IS resolved?
 [2003-05-17 12:04 UTC] krip at OpenIsis dot org
workaround: having the shell close stdin works using
PHP_FCGI_CHILDREN=3 php -b 1234 <&-
running from fcgi devkit's cgi-fcgi works, too
 [2003-05-18 09:52 UTC]
Assigning to the responsible party. :)

 [2003-06-29 15:46 UTC]
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at
In case this was a documentation problem, the fix will show up soon at

In case this was a website problem, the change will show
up on the site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.

now closes stdin if using socket server
PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Tue Dec 01 05:01:34 2015 UTC