Re: 4.0.1 Release Candidate packaged

From: Date: Mon, 26 Jun 2000 13:03:30 +0000
Subject: Re: 4.0.1 Release Candidate packaged
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-22344@lists.php.net to get a copy of this message
> OC>> This is not fixed for me on Linux and NetBSD and for other people on > OC>> Solaris when running Apache and PHP4 (latest CVS) as cgi with > OC>> discard_path enabled. > > That's very weird especially that I don't see any code that makes any > difference if DISCARD_PATH is enabled or disabled in latest version. Well, that's the problem because PHP3 handled this well. In PHP3, there was a particular case for DISCARD_PATH and it seems like none of the main developers are using it and "forgot" about this. ;) From http://cvs.php.net/viewcvs.cgi/php3/request_info.c : #if DISCARD_PATH if (GLOBAL(request_info).script_filename) { GLOBAL(request_info).filename = estrdup(GLOBAL(request_info).script_filename); } else { GLOBAL(request_info).filename = NULL; } #else PHP4 now is ignoring this part and always seems to set path_translated to NULL. Even before, as stated Andi in the code, it always seemed to be set to NULL anyway. I tried moving the DISCARD_PATH-specific code after the last path_translated set to NULL but it didn't improve. I don't know enough about PHP I guess. -- Olivier.Cahagne@epita.fr

« previous php.dev (#22344) next »