Fix bug #47042 (cgi sapi is incorrectly removing the SCRIPT_FILENAME for non apache).

The fix was provided by Sriram Natarajan.
This commit is contained in:
David Soria Parra 2009-06-09 13:32:12 +00:00
parent b78b9f5df3
commit 21d5bbcb7a

View File

@ -1082,8 +1082,8 @@ static void init_request_info(TSRMLS_D)
}
if (env_path_translated != NULL && env_redirect_url != NULL &&
orig_script_filename != NULL && script_path_translated != NULL
) {
env_path_translated != script_path_translated &&
strcmp(env_path_translated, script_path_translated) != 0) {
/*
* pretty much apache specific. If we have a redirect_url
* then our script_filename and script_name point to the