go to bug id or search bugs for
proc_open in combination with PTY support (by default disabled and unconfigurable, but patched by Debian/Ubuntu), will close file the /dev/ptmx file descriptor AFTER the other file descriptors have been dup2()'ed. This causes issues when such a file descriptor happens to have the same file descriptor as the /dev/ptmx one, which happens often.
This causes some issues in some tests of Symfony2 where I dove into to find the problem:
Code can be found at:
Add a Patch
Add a Pull Request
The fix for this bug has been committed.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.