Passing process handles to proc_open and co
| From: | Pierre Joye | Date: | Thu, 06 Dec 2012 08:49:28 +0000 |
| Subject: | Passing process handles to proc_open and co | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-64173@lists.php.net to get a copy of this message | ||
hi!
While looking at the bug #63073, I was wondering if we could simply do
not pass open handles to the newly created child process.
The main issue in this bug is the session related handles. They are
passed to the parent process, which hangs until their are closed. It
indeed does not happen (usually) until the end of the request. It
makes these functions almost unusable as soon as sessions are used.
These functions are about calling external commands and I fail to see
which usage may require to access PHP related handles. Does anyone see
any issue by not passing them anymore? And fixing this bug (and a
couple of other I think)?
It is windows only. Not sure if we do the same on other platforms.
Cheers,
--
Pierre
@pierrejoye