proc_open()'s $env is bugy. Afaik a lot. There has been tries to do that, but tests starts to fail with no reason. It is because by `$env` you rewite whole environment. And it is hard/almost impossible compose $_ENV, $_SERVER and others to make it works. putenv() is a safe way.