Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33832 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19778 invoked by uid 1010); 7 Dec 2007 15:48:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 19763 invoked from network); 7 Dec 2007 15:48:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Dec 2007 15:48:58 -0000 X-Host-Fingerprint: 82.41.129.160 82-41-129-160.cable.ubr02.glen.blueyonder.co.uk Received: from [82.41.129.160] ([82.41.129.160:22227] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4F/60-16679-A6B69574 for ; Fri, 07 Dec 2007 10:48:58 -0500 Message-ID: <4F.60.16679.A6B69574@pb1.pair.com> To: internals@lists.php.net Date: Fri, 07 Dec 2007 15:47:11 +0000 Reply-To: nrixham@gmail.com User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 82.41.129.160 Subject: expansion of proc_open fwrite and stream_* From: nrixham@gmail.com (Nathan Rixham) proc_open() pipes: when stdout and stderr are set to file no resource pointers are returned in the pipes array when using fwrite on a pipe to stdin (from proc_open()) fflush() does not work, neither does stream_set_write_buffer(); regardless of whether stdout/stderr are mapped to pipes or files, infact in all my tests I cannot get php to return anything through stdout or stderr until fclose on stdin has occured, even then support for stream_get_meta_data seems to be distinctly lacking. Perhaps there is a method I am missing however support for multiple process read/writes seems a little lacking (impossible?), and in my opinion should/could be expanded. Suggestions/Thoughts?