note 35355 deleted from function.proc-open by cmb
| From: | cmb@php.net | Date: | Mon, 31 Aug 2015 18:45:49 +0000 |
| Subject: | note 35355 deleted from function.proc-open by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-203533@lists.php.net to get a copy of this message | ||
Note Submitter: ch at westend dot com
----
I had trouble with this function as my script always hung like in a deadlock until I figured out
that I had to strictly keep the following
order. Trying to close all at the end did not work!
proc_open();
fwrite(pipes[0]); fclose(pipes[0]); # stdin
fread(pipes[1]); fclose(pipes[1]); # stdout
fread(pipes[2]); flcose(pipes[2]); # stderr
proc_close();