note 78306 added to function.proc-close

From: Date: Fri, 05 Oct 2007 21:25:54 +0000
Subject: note 78306 added to function.proc-close
Groups: php.notes 
Request: Send a blank email to php-notes+get-131153@lists.php.net to get a copy of this message
It seems that if you configured --enable-sigchild when you compiled PHP (which from my reading is required for you to use Oracle stuff), then return codes from proc_close() cannot be trusted. Using proc_open's Example 1998's code on versions I have of PHP4 (4.4.7) and PHP5 (5.2.4), the return code is always "-1". This is also the only return code I can cause by running other shell commands whether they succeed or fail. I don't see this caveat mentioned anywhere except on this old bug report -- http://bugs.php.net/bug.php?id=29123 ---- Server IP: 208.69.120.35 Probable Submitter: 70.158.64.2 ---- Manual Page -- http://www.php.net/manual/en/function.proc-close.php Edit -- https://master.php.net/note/edit/78306 Del: integrated -- https://master.php.net/note/delete/78306/integrated Del: useless -- https://master.php.net/note/delete/78306/useless Del: bad code -- https://master.php.net/note/delete/78306/bad+code Del: spam -- https://master.php.net/note/delete/78306/spam Del: non-english -- https://master.php.net/note/delete/78306/non-english Del: in docs -- https://master.php.net/note/delete/78306/in+docs Del: other reasons-- https://master.php.net/note/delete/78306 Reject -- https://master.php.net/note/reject/78306 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#131153) next »