Re: Re: Current working directory and multi-threaded environments

From: Date: Wed, 15 Mar 2000 20:50:53 +0000
Subject: Re: Re: Current working directory and multi-threaded environments
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-16861@lists.php.net to get a copy of this message
On Wed, Mar 15, 2000 at 03:42:36PM -0500, rubys@us.ibm.com wrote: > > > > Today the cwd is the initial cwd of the > > process and not of the executing script (unless I'm wrong, which is very > > possible). > > I believe that today the cwd is the directory which contains the executing > script. Take a look at fopen-wrappers.c. This behavior is important to a > number of people. It's currently that way in the Apache and ISAPI SAPI module. This is also the behaviour recommened by the pseudo CGI standard. > Retaining the current behavior is a bit more involved than simply saving > the virtual path away some place. Every place in which a user can enter a > relative path will need to be examined. Did you count them? :) - Sascha

« previous php.dev (#16861) next »