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

From: Date: Thu, 16 Mar 2000 12:57:47 +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-16882@lists.php.net to get a copy of this message
On Thu, Mar 16, 2000 at 07:18:38AM -0500, rubys@us.ibm.com wrote: > > > >Are you saying that if we write new thread-safe virtual_chdir() and > >virtual_getcwd() functions and substitute the ones existing in PHP things > >won't work? I very much disagree with you. > > You are free to disagree with me, and I may have missed something or I > could very much be wrong. It just seems to me that unless more is done > than what you propose, examples such as the following will change behavior: > > http://www.php.net/manual/html/function.readdir.html > > And that's an easy one. dl, ftp_get and others can be passed relative > paths. Fortunately, this list is finite. What would concern me most is > the extensions that interface to external code. Why does it change behaviour? The functions (not readdir, but opendir) will create an absolute path from the relative path passed to them. - Sascha

« previous php.dev (#16882) next »