PHP 4.0 Bug #2609: PATH_TRANSLATED environment variable being ignored

From: Date: Tue, 26 Oct 1999 19:13:16 +0000
Subject: PHP 4.0 Bug #2609: PATH_TRANSLATED environment variable being ignored
Groups: php.dev 
Request: Send a blank email to php-dev+get-11921@lists.php.net to get a copy of this message
From: jmidgley@zeustechnology.com Operating system: Linux 2.2.13, glibc2.1 PHP version: 4.0 Beta 2 PHP Bug Type: Other Bug description: PATH_TRANSLATED environment variable being ignored When php3 was run as a CGI binary, it used to read the CGI env. variable PATH_TRANSLATED to discover where the script was that it was supposed to be executing. For some reason, php4 no longer does this, meaning that the CGI binary doesn't work- (with webservers such as Zeus, for example). The following diff fixes the problem. No claims as to the elegance or correctness of this solution are made, but it would be much appreciated if this could be fixed in the next release. diff -u php-4.0b2/request_info.c php-4.0b2-damianed/request_info.c --- php-4.0b2/request_info.c Fri Jul 16 14:12:42 1999 +++ php-4.0b2-damianed/request_info.c Tue Oct 26 20:32:43 1999 @@ -60,6 +60,8 @@ } else { SG(request_info).path_translated = NULL; } +#else + SG(request_info).path_translated = getenv("PATH_TRANSLATED"); #endif return SUCCESS; }

« previous php.dev (#11921) next »