note 103715 added to function.proc-open

From: Date: Fri, 29 Apr 2011 14:13:37 +0000
Subject: note 103715 added to function.proc-open
Groups: php.notes 
Request: Send a blank email to php-notes+get-179272@lists.php.net to get a copy of this message
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. ---- Server IP: 91.199.167.223 Probable Submitter: 82.93.241.107 ---- Manual Page -- http://www.php.net/manual/en/function.proc-open.php Edit -- https://master.php.net/note/edit/103715 Del: integrated -- https://master.php.net/note/delete/103715/integrated Del: useless -- https://master.php.net/note/delete/103715/useless Del: bad code -- https://master.php.net/note/delete/103715/bad+code Del: spam -- https://master.php.net/note/delete/103715/spam Del: non-english -- https://master.php.net/note/delete/103715/non-english Del: in docs -- https://master.php.net/note/delete/103715/in+docs Del: other reasons-- https://master.php.net/note/delete/103715 Reject -- https://master.php.net/note/reject/103715 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#179272) next »