note 86768 deleted from function.proc-close by danbrown

From: Date: Tue, 17 May 2011 18:31:40 +0000
Subject: note 86768 deleted from function.proc-close by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-179836@lists.php.net to get a copy of this message
Note Submitter: simeonl at dbc dot co dot nz ---- 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?

« previous php.notes (#179836) next »