I'm currently planning to use Symfony's ProcessBuilder, which allows to set some environment variable which will be passed onto a proc_open
call.
I need for a certain command to change the TMPDIR
, and to restore it afterwards, so I was wondering if, when the modified env (and thus modified value for the $TMPDIR
env variable) would be restored after the call, or do I need to restore it myself ? And will this value be indeed changed if need be for a particular command (which is ghostscript in my case) ?
Thanks