cvs: php4 /sapi/cgi cgi_main.c

From: Date: Mon, 26 Jun 2000 17:57:04 +0000
Subject: cvs: php4 /sapi/cgi cgi_main.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-489@lists.php.net to get a copy of this message
andi Mon Jun 26 10:57:04 2000 EDT Modified files: /php4/sapi/cgi cgi_main.c Log: - Pray this is an OK fix for the DISCARD_PATH junk Index: php4/sapi/cgi/cgi_main.c diff -u php4/sapi/cgi/cgi_main.c:1.57 php4/sapi/cgi/cgi_main.c:1.58 --- php4/sapi/cgi/cgi_main.c:1.57 Mon Jun 26 09:26:20 2000 +++ php4/sapi/cgi/cgi_main.c Mon Jun 26 10:57:03 2000 @@ -625,7 +625,11 @@ or user_dir configuration directives, PATH_INFO is used to construct the filename as a side effect of php_fopen_primary_script. */ +#if DISCARD_PATH + SG(request_info).path_translated = estrdup(getenv("SCRIPT_FILENAME")); +#else SG(request_info).path_translated = estrdup(getenv("PATH_TRANSLATED")); +#endif } if (cgi || SG(request_info).path_translated) { file_handle.handle.fp = php_fopen_primary_script();

« previous php.cvs (#489) next »