php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #45510 proc_open has great hidden features
Submitted: 2008-07-14 14:11 UTC Modified: 2008-10-27 12:54 UTC
From: arnaud dot lb at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2008-07-14 14:11 UTC] arnaud dot lb at gmail dot com
Description:
------------
The documentation on proc_open about the $descriptorspec argument seems incomplete: "The currently supported pipe types are file and pipe."

Actually the descriptors can not only be pipes of files, but also any resource or a pty:

$descriptorspec = array(
 0 => stream_socket_server("unix://mysocket"),
 1 => array("pty", "w"),
 2 => STDERR,
);


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-06-13 08:12 UTC] salathe@php.net
Automatic comment from SVN on behalf of salathe
Revision: http://svn.php.net/viewvc/?view=revision&revision=333770
Log: Typofix (spacing in example comment)

--
Patch by anonymous #45510
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 12:00:01 2026 UTC