Re: popen() and virtual dir
| From: | Andi Gutmans | Date: | Sun, 11 Jun 2000 15:32:01 +0000 |
| Subject: | Re: popen() and virtual dir | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-21001@lists.php.net to get a copy of this message | ||
On Sun, 11 Jun 2000, Sascha Schumann wrote:
> On Sat, 10 Jun 2000, Andi Gutmans wrote:
>
> > What do you guys want to do with popen() and virtual_dir? This effects all
> > of the exec() functions.
> > We can either do a real chdir() before calling it and mutexing the whole
> > section; or we can take a more complicated approach of creating a new
> > process and doing the chdir() there. Last but not least, we could just
> > disable these functions :)
>
> Forking and chdir() afterwards should do the trick.
>
> And then let us hope that all threaded servers handle forks
> correctly (the child inherits all locks and possibly
> allocated heap areas without knowing about them at all, if
> the server has not set up proper fork-handling stacks).
On windows forking and chdir() doesn't really exist as far as I know.
There is CreateProcess but it would require some thinking.
Andi