note 103715 deleted from function.proc-open by danbrown
| From: | danbrown@php.net | Date: | Fri, 29 Apr 2011 14:16:37 +0000 |
| Subject: | note 103715 deleted from function.proc-open by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-179273@lists.php.net to get a copy of this message | ||
Note Submitter: jille at hexon dot cx
----
In reply to php at keith tyler dot com:
If you don't save the result of proc_open in a variable, it will immediately get garbage
collected. That results in PHP internally calling proc_close() on the newly created resource, which
will invalidate the open streams.
You will see that $ph = proc_open(...); $ph = NULL; gives the same result.