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

From: Date: Wed, 15 Mar 2000 21:14:59 +0000
Subject: Re: Re: Current working directory and multi-threaded environments
Groups: php.dev 
Request: Send a blank email to php-dev+get-16863@lists.php.net to get a copy of this message
>>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. > >I don't think so. The cwd seems to be taken from getcwd() and not from the >executing scripts filename. Look at expand_filepath(). expand_filepath is only used to locate the script. Once the script is located, the php_fopen_primary_script (in CGI) and send_php (in Apache) do the dirty deed. - Sam Ruby

« previous php.dev (#16863) next »