summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-08-29 18:25:37 +0000
committerSascha Schumann <sas@php.net>1999-08-29 18:25:37 +0000
commit869eeb62f42ce1c1d8e17efaa70676988cbabdc8 (patch)
tree08296962cccd16c231c87759a481bf1eb434b2b7
parent621fe700485a3d28eb3f06ace25a454746a9dd5d (diff)
downloadphp-git-869eeb62f42ce1c1d8e17efaa70676988cbabdc8.tar.gz
PATH_TRANSLATED was not used at all, even if one comment implied
it should be used. After adding this, the CGI version works for me w/ Apache + suexec
-rw-r--r--cgi_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cgi_main.c b/cgi_main.c
index 57735f396f..e6241ea09d 100644
--- a/cgi_main.c
+++ b/cgi_main.c
@@ -430,6 +430,9 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
or user_dir configuration directives, PATH_INFO is used to construct
the filename as a side effect of php3_fopen_for_parser.
*/
+ if(cgi) {
+ SG(request_info).path_translated = getenv("PATH_TRANSLATED");
+ }
if (cgi || SG(request_info).path_translated) {
file_handle.handle.fp = php3_fopen_for_parser();
file_handle.filename = SG(request_info).path_translated;