I will re-itereate the points that I have listed in the bug thread, they are;
- I'm running PHP 4.2.3, IIS5, Win2K (SP3 + Q326830, Q295688, Q147222).
- IIS is configured to use Host Header
- The error message that is returned via the script is;
<head><title>Error in CGI Application</title></head>
<body><h1>CGI Error</h1>The specified CGI application misbehaved by not
returning a complete set of HTTP headers. The headers it did return
- If the slot is run as a local administrator then the error does not occur, similiary if you remove the IUSR access to the slot so that you are prompted for authentication, and you use an administrator account.
- At the same time that the error is generated, a popup also occurs on the console with the details;
TitleBar: php.exe - Application Error
The application failed to initialize properly (0xc0000142). Click OK to terminate the application
- Any other PHP script which does not use an MSSQL connection works without a problem, this also includes scripts which use MySQL.
If anyone has encountered this problem before and found a resolution for it, please post it here. As you may read from the bug thread, the developers of PHP seemed to have passed this off as an IIS issue.
I dont have my php.ini in front of me, but somewhere in there where your paths are, something about CGI, set to 0 or 1, changing those got rid of those messages I got. If its the correct way to fix it, I wouldnt know but it fixed my problem