Date: 06/26/00
- Next message: thomas <email protected>: "[PHP-DEV] PHP 4.0 Bug #5225: Compile problems with reentrant time functions (*_r)"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #4372 Updated: seems as configure doesn't quite grok my system"
- In reply to: Stanislav Malyshev: "Re: [PHP-DEV] 4.0.1 Release Candidate packaged"
- Next in thread: Stanislav Malyshev: "Re: [PHP-DEV] 4.0.1 Release Candidate packaged"
- Reply: Stanislav Malyshev: "Re: [PHP-DEV] 4.0.1 Release Candidate packaged"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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 <email protected>-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: thomas <email protected>: "[PHP-DEV] PHP 4.0 Bug #5225: Compile problems with reentrant time functions (*_r)"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #4372 Updated: seems as configure doesn't quite grok my system"
- In reply to: Stanislav Malyshev: "Re: [PHP-DEV] 4.0.1 Release Candidate packaged"
- Next in thread: Stanislav Malyshev: "Re: [PHP-DEV] 4.0.1 Release Candidate packaged"
- Reply: Stanislav Malyshev: "Re: [PHP-DEV] 4.0.1 Release Candidate packaged"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

