Re: Re: Current working directory and multi-threaded environments
| From: | rubys at us dot ibm dot com | Date: | Wed, 15 Mar 2000 20:42:36 +0000 |
| Subject: | Re: Re: Current working directory and multi-threaded environments | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-16860@lists.php.net to get a copy of this message | ||
> 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.
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.
- Sam Ruby