note 82254 added to function.proc-close
| From: | noname at bspamfree dot org | Date: | Wed, 02 Apr 2008 20:44:33 +0000 |
| Subject: | note 82254 added to function.proc-close | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-137869@lists.php.net to get a copy of this message | ||
According to the discussion associated with bug #17538, the "termination status" as
returned by this function is not the same thing as the exit code ($? in BASH). To extract the exit
code from the termination status, something like this is needed:
$exitcode = (proc_close($proc) >> 8) & 0xff;
----
Server IP: 216.235.15.211
Probable Submitter: 192.197.213.245
----
Manual Page -- http://www.php.net/manual/en/function.proc-close.php
Edit -- https://master.php.net/note/edit/82254
Del: integrated -- https://master.php.net/note/delete/82254/integrated
Del: useless -- https://master.php.net/note/delete/82254/useless
Del: bad code -- https://master.php.net/note/delete/82254/bad+code
Del: spam -- https://master.php.net/note/delete/82254/spam
Del: non-english -- https://master.php.net/note/delete/82254/non-english
Del: in docs -- https://master.php.net/note/delete/82254/in+docs
Del: other reasons-- https://master.php.net/note/delete/82254
Reject -- https://master.php.net/note/reject/82254
Search -- https://master.php.net/manage/user-notes.php