Re: [PHP-DEV] shell_exec, environment, and multithreading servers

2009-05-28 Thread Antony Dovgal
On 28.05.2009 17:21, jvlad wrote: > Why not to enhance semantic of exec() and backticks functions? Why not to > run child process with copy of $_ENV[] instead of current process > envrironment? Most likely because nobody uses (and cares of) multithreaded servers. But a patch would be welcome, I g

Re: [PHP-DEV] shell_exec, environment, and multithreading servers

2009-05-28 Thread jvlad
>> Recently I faced with one funny problem in PHP. Seems there is no way to >> run >> a sub-process using exec() (or backticks), and pass there specially >> crafted environment without affecting all running threads. As soon as I >> update the environment, all other threads see the change. It's >>

Re: [PHP-DEV] shell_exec, environment, and multithreading servers

2009-05-28 Thread Richard Quadling
2009/5/24 jvlad : > Hi all, > > Recently I faced with one funny problem in PHP. Seems there is no way to run > a sub-process using shell_exec() (or backticks), and pass there specially > crafted environment without affecting all running threads. As soon as I > update the environment, all other thre

[PHP-DEV] shell_exec, environment, and multithreading servers

2009-05-24 Thread jvlad
Hi all, Recently I faced with one funny problem in PHP. Seems there is no way to run a sub-process using shell_exec() (or backticks), and pass there specially crafted environment without affecting all running threads. As soon as I update the environment, all other threads see the change. It's