Re: [PHP-DEV] Logic in sapi/cgi/cgi_main.c

2001-04-30 Thread Sterling Hughes
On Mon, 30 Apr 2001, Andi Gutmans wrote: > http://www.faqts.com/knowledge_base/view.phtml/aid/734/fid/37 > It sounds to me that you are right. That should probably just be request_uri. > I thought many people have used this $PHP_SELF so it's kind of strange that > there haven't been a zillion com

Re: [PHP-DEV] Logic in sapi/cgi/cgi_main.c

2001-04-29 Thread Andi Gutmans
http://www.faqts.com/knowledge_base/view.phtml/aid/734/fid/37 It sounds to me that you are right. That should probably just be request_uri. I thought many people have used this $PHP_SELF so it's kind of strange that there haven't been a zillion complaints. Does anyone object to changing this beha

Re: [PHP-DEV] Logic in sapi/cgi/cgi_main.c

2001-04-29 Thread Sterling Hughes
>Can you give an example of how it looks with request_uri and how it looks >with both? Then it'll be easier for someone like me who doesn't know the >standard too well to check the PHP manual and the HTTP standard to see >what >the correct behavior should be. > Well, I can't really test this, as

Re: [PHP-DEV] Logic in sapi/cgi/cgi_main.c

2001-04-29 Thread Andi Gutmans
Can you give an example of how it looks with request_uri and how it looks with both? Then it'll be easier for someone like me who doesn't know the standard too well to check the PHP manual and the HTTP standard to see what the correct behavior should be. Andi At 07:55 AM 4/29/2001 -0400, Ster

[PHP-DEV] Logic in sapi/cgi/cgi_main.c

2001-04-29 Thread Sterling Hughes
I've taken a look at the code that registers $PHP_SELF in the CGI version, in accordance with bug 6491. I see the problem, its that on some server & OS combinations, the SCRIPT_NAME environment variable is incorrectly set and therefore the below code exhibits the bug (the strcmp() should avoid t