]> granicus.if.org Git - php/commitdiff
- This seems to be a bug. Anyone know who wrote this code? Should it stay
authorAndi Gutmans <andi@php.net>
Sat, 10 Jun 2000 09:05:22 +0000 (09:05 +0000)
committerAndi Gutmans <andi@php.net>
Sat, 10 Jun 2000 09:05:22 +0000 (09:05 +0000)
- in?

sapi/cgi/cgi_main.c

index 72d9008f13daff913fcee671d3afabd9a117a964..d3bb8ed1d13233df5c12dec605b0b7627e44888d 100644 (file)
@@ -278,8 +278,8 @@ static void init_request_info(SLS_D)
        /* a hack for apache nt because it does not appear to set argv[1] and sets
           script filename to php.exe thus makes us parse php.exe instead of file.php
           requires we get the info from path translated.  This can be removed at
-          such a time taht apache nt is fixed */
-       if (script_filename) {
+          such a time that apache nt is fixed */
+       if (!script_filename) {
                script_filename = getenv("PATH_TRANSLATED");
        }
 #endif