Re: popen() and virtual dir
| From: | Sascha Schumann | Date: | Sun, 11 Jun 2000 06:17:52 +0000 |
| Subject: | Re: popen() and virtual dir | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-20991@lists.php.net to get a copy of this message | ||
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).
- Sascha