Ask a Question related to PHP Bugs, Design and Development.
-
edink@php.net #1
#37238 [Asn->Csd]: fastcgi-isapi dll runs dynamic servers as filters rather than responders
ID: 37238
Updated by: [email]edink@php.net[/email]
Reported By: barborak at basikgroup dot com
-Status: Assigned
+Status: Closed
Bug Type: IIS related
Operating System: Windows XP
PHP Version: 6CVS-2006-04-28 (CVS)
Assigned To: edink
New Comment:
Not quite a year yet, but the patches have been applied :)
Precompiled file can be downloaded from:
[url]http://pecl4win.php.net/download.php/dll/04d5c454937559f3ea031e8051b55625/isapi_fcgi.dll[/url]
Thanks!
Previous Comments:
------------------------------------------------------------------------
[2006-05-01 15:39:54] barborak at basikgroup dot com
i've posted the patches here:
[url]http://www.basikgroup.com/temp/fastcgi_isapi_patches.zip[/url]
thanks,
mike
------------------------------------------------------------------------
[2006-04-30 22:20:43] [email]edink@php.net[/email]
Could you please post this patch online somewhere?
I'll check it out.
------------------------------------------------------------------------
[2006-04-28 16:30:27] barborak at basikgroup dot com
Description:
------------
(I apologize if I am reporting this in the wrong place. It seems that
Shane Caraveo's fastcgi-isapi module is now being maintained as part of
the PHP project. This is a great DLL for general FastCGI applications
and not just PHP. The problem I found relates to using it with Perl to
run dynamic servers. As such, it's not terribly relevant to your work
but I thought I'd report it along with patches.)
1. When using the fastcgi-isapi DLL to run dynamic servers, the dynamic
servers are running as FastCGI filters rather than responders. This is
due to a structure's member not being initialized.
2. When using perl as the server executable, it is sometimes necessary
to include arguments like -T and -w. The Args value in the registry is
being ignored for dynamic servers.
Here are the patches I applied to the code in CVS to fix these
problems:
--- FCGIProcMgr.cpp Thu Apr 27 14:46:38 2006
+++ FCGIProcMgr.cpp.new Thu Apr 27 14:45:54 2006
@@ -388,7 +388,10 @@
proc->incServers = parent->incServers;
proc->maxServers = parent->maxServers;
proc->timeout = parent->timeout;
- if (path) strncpy(proc->args, path, sizeof(proc->args)-1);
+ proc->isFilter = parent->isFilter;
+ *( proc->args ) = 0;
+ if (parent->args) strncpy(proc->args, parent->args,
sizeof(proc->args)-1);
+ if (path) strncpy(proc->args + strlen (proc->args), path,
sizeof(proc->args)-1 - strlen (proc->args) );
strncpy(proc->bindPath, bindpath, sizeof(proc->bindPath)-1);
if (dwServerImpersonate) {
proc->env.putEnv("_FCGI_NTAUTH_IMPERSONATE_=1");
And I also needed this change to compile it on my machine:
--- fcgi_server.h Thu Apr 27 14:46:38 2006
+++ fcgi_server.h.new Thu Apr 27 14:43:46 2006
@@ -25,6 +25,10 @@
#define FCGI_SERVER_VERSION "2.2.2 0.5.2 beta"
#define FCGI_ENVIRON_VER "FCGI_SERVER_VERSION=" FCGI_SERVER_VERSION
+#if !defined (INVALID_FILE_ATTRIBUTES)
+#define INVALID_FILE_ATTRIBUTES ((DWORD)-1)
+#endif
+
extern void InitiateServers(char *szExtension);
extern void CheckServers(char *szExtension);
Given these changes and registry settings like the following, I was
able to successfully run perl dynamic servers with the fastcgi-isapi
module:
HKEY_LOCAL_MACHINE\SOFTWARE\FASTCGI\.pl
In this key, I added the following values:
AppPath REG_SZ c:\tools\perl\5.6.1\bin\MSWin32-x86\perl.exe
Args REG_SZ -T
BindPath REG_SZ
Note that the value of Args is "-T " (with a space). BindPath is empty.
(Perhaps it's not necessary.)
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=37238&edit=1[/url]
edink@php.net Guest
-
#39289 [NEW]: all right in CGI/FastCGI mode, but not right in ISAPI mode.
From: bin at tbswe dot com Operating system: Windows 2003 PHP version: 5.1.6 PHP Bug Type: Dynamic loading Bug description: ... -
Frontend Web Servers connect to Coldfusion Servers
I need some help getting a front end web server cluster (iis) talking with the backend colfusion app cluster (j2ee install). Do I have to install... -
Auto Responders
Is there a way to set up auto responders on the POP 3 server or is that only possbile thru exchange. I would like to send auto responders out once... -
Please help on ISAPI filters...
installed 2 ISAPI DLL in my IIS 5 on w2k server sp4. One filter has "Low priority" The other has "High priority" I have to execute FIRST the... -
#5005 [Com]: PHP4 ISAPI module misbehaves on ACLS restricted virtual servers/directories
ID: 5005 Comment by: oc34 at hotmail dot com Reported By: whole at gmx dot net Status: Closed Bug Type: ...



Reply With Quote

