cvs: pear /Crypt_GPG/GPG/Driver Php.php
| From: | Michael Gauthier | Date: | Sat, 05 Apr 2008 01:17:39 +0000 |
| Subject: | cvs: pear /Crypt_GPG/GPG/Driver Php.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-51801@lists.php.net to get a copy of this message | ||
gauthierm Sat Apr 5 01:17:39 2008 UTC
Modified files:
/pear/Crypt_GPG/GPG/Driver Php.php
Log:
After examining PHP CVS, this does seem to return an exit code afterall.
http://cvs.php.net/viewvc.cgi/pear/Crypt_GPG/GPG/Driver/Php.php?r1=1.23&r2=1.24&diff_format=u
Index: pear/Crypt_GPG/GPG/Driver/Php.php
diff -u pear/Crypt_GPG/GPG/Driver/Php.php:1.23 pear/Crypt_GPG/GPG/Driver/Php.php:1.24
--- pear/Crypt_GPG/GPG/Driver/Php.php:1.23 Sat Apr 5 00:48:39 2008
+++ pear/Crypt_GPG/GPG/Driver/Php.php Sat Apr 5 01:17:38 2008
@@ -32,7 +32,7 @@
* @author Michael Gauthier <mike@silverorange.com>
* @copyright 2005-2007 silverorange
* @license http://www.gnu.org/copyleft/lesser.html LGPL
License 2.1
- * @version CVS: $Id: Php.php,v 1.23 2008/04/05 00:48:39 gauthierm Exp $
+ * @version CVS: $Id: Php.php,v 1.24 2008/04/05 01:17:38 gauthierm Exp $
* @link http://pear.php.net/package/Crypt_GPG
* @link http://www.gnupg.org/
*/
@@ -1368,15 +1368,7 @@
$this->_closePipe($pipe_number);
}
- $termination_status = proc_close($this->_process);
-
- // proc_close returns a termination status, not exit code
- if (($termination_status & 0x7f) == 0) { // WIFEXITED
- $exit_code = ($termination_status & 0xff) >> 8; // WEXITSTATUS
- } else {
- $exit_code = -1;
- }
-
+ $exit_code = proc_close($this->_process);
if ($exit_code != 0) {
$this->_debug('Subprocess returned an unexpected exit code: ' .
$exit_code);