#23664 [Opn]: FastCGI -b: !FCGX_IsCGI()

From: Date: Sat, 17 May 2003 17:04:17 +0000
Subject: #23664 [Opn]: FastCGI -b: !FCGX_IsCGI()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39844@lists.php.net to get a copy of this message
ID: 23664 User updated by: krip at OpenIsis dot org Reported By: krip at OpenIsis dot org Status: Open Bug Type: CGI related Operating System: any *nix PHP Version: 4.3.2RC3 New Comment: workaround: having the shell close stdin works using PHP_FCGI_CHILDREN=3 php -b 1234 <&- running from fcgi devkit's cgi-fcgi works, too Previous Comments: ------------------------------------------------------------------------ [2003-05-16 16:14:48] 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-16 16:04:32] derick@php.net Add your comments to the old bugreport, no need to open a new one. ------------------------------------------------------------------------ [2003-05-16 15:56:16] 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 ? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23664&edit=1

« previous php.bugs (#39844) next »