cvs: /php4 cgi_main.c
| From: | Sascha Schumann | Date: | Sun, 29 Aug 1999 18:25:37 +0000 |
| Subject: | cvs: /php4 cgi_main.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-3833@lists.php.net to get a copy of this message | ||
sas Sun Aug 29 14:25:37 1999 EDT
Modified files:
/php4 cgi_main.c
Log:
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
Index: php4/cgi_main.c
diff -u php4/cgi_main.c:1.26 php4/cgi_main.c:1.27
--- php4/cgi_main.c:1.26 Sat Aug 28 19:06:07 1999
+++ php4/cgi_main.c Sun Aug 29 14:25:37 1999
@@ -430,6 +430,9 @@
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;