note 35355 added to function.proc-open
| From: | ch at westend dot com | Date: | Thu, 28 Aug 2003 13:46:21 +0000 |
| Subject: | note 35355 added to function.proc-open | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-55238@lists.php.net to get a copy of this message | ||
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();
----
Manual Page -- http://www.php.net/manual/en/function.proc-open.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35355
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35355&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35355&report=yes