note 86768 added to function.proc-close
| From: | simeonl at dbc dot co dot nz | Date: | Mon, 03 Nov 2008 02:12:45 +0000 |
| Subject: | note 86768 added to function.proc-close | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-146071@lists.php.net to get a copy of this message | ||
I have the same problem with a return code of -1 being returned because the --enable-sigchild flag
is set as ashnazg at php dot net mentioned. Unfortunely I'm told this is in the debian
package, and we can't change the PHP install to fix this.
I've been able to work around this as follows, it adds an extra layer, which is not ideal, but
in circumstances where you can't change the install it's better than nothing.
I made a shell script as follows:
#!/bin/bash
eval $1
echo $? 1>&3
Basically that executes the argument of the script and echos the return code to pipe 3. I defined
pipe 3 in descriptorspec for passing the return status back to PHP, doing an end run around this
"will not fix" situation.
Naturally this is no use on a windows system, but perhaps the windows package isn't compiled
with the --enable-sigchild flag set?
----
Server IP: 202.89.58.1
Probable Submitter: 203.96.151.36
----
Manual Page -- http://www.php.net/manual/en/function.proc-close.php
Edit -- https://master.php.net/note/edit/86768
Del: integrated -- https://master.php.net/note/delete/86768/integrated
Del: useless -- https://master.php.net/note/delete/86768/useless
Del: bad code -- https://master.php.net/note/delete/86768/bad+code
Del: spam -- https://master.php.net/note/delete/86768/spam
Del: non-english -- https://master.php.net/note/delete/86768/non-english
Del: in docs -- https://master.php.net/note/delete/86768/in+docs
Del: other reasons-- https://master.php.net/note/delete/86768
Reject -- https://master.php.net/note/reject/86768
Search -- https://master.php.net/manage/user-notes.php