Fixed bug #47042 (PHP cgi sapi is removing SCRIPT_FILENAME for non apache).

This commit is contained in:
David Soria Parra 2009-01-09 22:13:40 +00:00
parent f4e5ed247c
commit 4edee64c6c

View file

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