# php-cgi broken

- Thread: https://externals.io/message/14811
- Original archive: https://news-web.php.net/php.internals/14811
- Started by Frank M. Kromann on 2005-02-11T00:11:40+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #14811 — Frank M. Kromann — 2005-02-11T00:11:40+00:00

URL: https://externals.io/message/14811#14811

I Suggest that we revert the patch, as it for sure breaks how IIS works
with CGI. I have not thested with ISAPI or Apache, but I could do that.

We can then add a patch that checks for SCRIPT_FILENAME and then falls
back to SCRIPT_NAME if the first one was undefined.

It seams to me that the patch does it the other way arround.

- Frank


> 
>      Bug report suggested the other way around: CGI not being usable
>      under IIS _without_ the patch. :)
> 
>      (Yes, I didn't test it, I don't have IIS..)
> 
>      http://bugs.php.net/bug.php?id=28227&edit=1
> 
>      --Jani
> 
> 
> 
> > […]
cgi
> > […]
all
> > […]

---

## #14813 — Andi Gutmans — 2005-02-11T01:30:38+00:00

URL: https://externals.io/message/14811#14813 · In reply to: #14811

I agree. Frank, can you revert and then we can either fix it ourselves or 
ask that guy to come up with a new patch.

Andi

At 04:11 PM 2/10/2005 -0800, Frank M. Kromann wrote:
>I Suggest that we revert the patch, as it for sure breaks how IIS works
>with CGI. I have not thested with ISAPI or Apache, but I could do that.
>
>We can then add a patch that checks for SCRIPT_FILENAME and then falls
>back to SCRIPT_NAME if the first one was undefined.
>
>It seams to me that the patch does it the other way arround.
>
>- Frank
>
>
> > […]
>cgi
> > […]
>all
> > […]

---

## #14815 — Jani Taskinen — 2005-02-11T02:12:34+00:00

URL: https://externals.io/message/14811#14815 · In reply to: #14811

reverted.

     --Jani



> I Suggest that we revert the patch, as it for sure breaks how IIS works
> with CGI. I have not thested with ISAPI or Apache, but I could do that.
>
> We can then add a patch that checks for SCRIPT_FILENAME and then falls
> back to SCRIPT_NAME if the first one was undefined.
>
> It seams to me that the patch does it the other way arround.
>
> - Frank
>
>
> > […]
> cgi
> > […]
> all
> > […]
