cvs: pecl /gnupg config.m4 gnupg.c /gnupg/tests vars.inc
| From: | Thilo Raufeisen | Date: | Tue, 24 Oct 2006 14:04:03 +0000 |
| Subject: | cvs: pecl /gnupg config.m4 gnupg.c /gnupg/tests vars.inc | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-6537@lists.php.net to get a copy of this message | ||
traufeisen Tue Oct 24 14:04:03 2006 UTC
Modified files:
/pecl/gnupg config.m4 gnupg.c
/pecl/gnupg/tests vars.inc
Log:
- fixed build-issues in config.m4
- make sure that 'plain_text' is passed on 'verify'
- set error_reporting to E_ALL during tests
http://cvs.php.net/viewvc.cgi/pecl/gnupg/config.m4?r1=1.6&r2=1.7&diff_format=u
Index: pecl/gnupg/config.m4
diff -u pecl/gnupg/config.m4:1.6 pecl/gnupg/config.m4:1.7
--- pecl/gnupg/config.m4:1.6 Thu Mar 16 15:52:43 2006
+++ pecl/gnupg/config.m4 Tue Oct 24 14:04:02 2006
@@ -1,4 +1,4 @@
-dnl $Id: config.m4,v 1.6 2006/03/16 15:52:43 traufeisen Exp $
+dnl $Id: config.m4,v 1.7 2006/10/24 14:04:02 traufeisen Exp $
dnl config.m4 for extension gnupg
PHP_ARG_WITH(gnupg, for gnupg support,
@@ -24,7 +24,7 @@
AC_MSG_ERROR([Please reinstall the gpgme distribution])
fi
- PHP_ADD_INCLUDE($GNUPG_DIR/include)
+ PHP_ADD_INCLUDE($GNUPG_DIR)
LIBNAME=gpgme
LIBSYMBOL=gpgme_check_version
http://cvs.php.net/viewvc.cgi/pecl/gnupg/gnupg.c?r1=1.21&r2=1.22&diff_format=u
Index: pecl/gnupg/gnupg.c
diff -u pecl/gnupg/gnupg.c:1.21 pecl/gnupg/gnupg.c:1.22
--- pecl/gnupg/gnupg.c:1.21 Thu May 18 19:27:52 2006
+++ pecl/gnupg/gnupg.c Tue Oct 24 14:04:02 2006
@@ -10,7 +10,7 @@
+--------------------------------------------------------------------+
*/
-/* $Id: gnupg.c,v 1.21 2006/05/18 19:27:52 traufeisen Exp $ */
+/* $Id: gnupg.c,v 1.22 2006/10/24 14:04:02 traufeisen Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -1162,7 +1162,7 @@
gnupg_fetchsignatures (gpgme_result->signatures,signature_array,return_value);
/* get a 'plain' version of the text without a signature */
gpg_plain = gpgme_data_release_and_get_mem(gpgme_text,&gpg_plain_len);
- if(gpg_plain && gpg_plain_len > 0){
+ if(gpg_plain && gpg_plain_len > 0 && plain_text){
ZVAL_STRINGL (plain_text, gpg_plain,gpg_plain_len,1);
}
free (gpg_plain);
http://cvs.php.net/viewvc.cgi/pecl/gnupg/tests/vars.inc?r1=1.1&r2=1.2&diff_format=u
Index: pecl/gnupg/tests/vars.inc
diff -u pecl/gnupg/tests/vars.inc:1.1 pecl/gnupg/tests/vars.inc:1.2
--- pecl/gnupg/tests/vars.inc:1.1 Thu May 18 19:32:32 2006
+++ pecl/gnupg/tests/vars.inc Tue Oct 24 14:04:02 2006
@@ -1,6 +1,6 @@
<?php
putenv("GNUPGHOME=".dirname(__FILE__));
-
+error_reporting (E_ALL);
$fingerprint = "64DF06E42FCF2094590CDEEE2E96F141B3DD2B2E";
$passphrase = "blabla";