mirror of
https://github.com/php/php-src.git
synced 2024-12-14 12:26:19 +08:00
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:
parent
b78b9f5df3
commit
21d5bbcb7a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user