note 78305 added to function.proc-open
| From: | ashnazg@php.net | Date: | Fri, 05 Oct 2007 21:23:47 +0000 |
| Subject: | note 78305 added to function.proc-open | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-131152@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-open.php
Edit -- https://master.php.net/note/edit/78305
Del: integrated -- https://master.php.net/note/delete/78305/integrated
Del: useless -- https://master.php.net/note/delete/78305/useless
Del: bad code -- https://master.php.net/note/delete/78305/bad+code
Del: spam -- https://master.php.net/note/delete/78305/spam
Del: non-english -- https://master.php.net/note/delete/78305/non-english
Del: in docs -- https://master.php.net/note/delete/78305/in+docs
Del: other reasons-- https://master.php.net/note/delete/78305
Reject -- https://master.php.net/note/reject/78305
Search -- https://master.php.net/manage/user-notes.php