mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
Fixed bug #47042 (PHP cgi sapi is removing SCRIPT_FILENAME for non apache).
This commit is contained in:
parent
f4e5ed247c
commit
4edee64c6c
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue