From 8f439b534fb050763c8aac3cf03bab6f9ec77f9a Mon Sep 17 00:00:00 2001 From: Michael Maclean Date: Tue, 20 Jul 2010 18:48:19 +0000 Subject: [PATCH] Fix compatibility with gpgme > 1.2.0 --- gnupg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gnupg.c b/gnupg.c index 9807ff4..f0c0241 100644 --- a/gnupg.c +++ b/gnupg.c @@ -134,6 +134,7 @@ static void gnupg_res_dtor(zend_rsrc_list_entry *rsrc TSRMLS_DC) { static void gnupg_res_init(gnupg_object *intern TSRMLS_DC){ /* init the gpgme-lib and set the default values */ gpgme_ctx_t ctx; + gpgme_check_version (NULL); gpgme_new (&ctx); gpgme_set_armor (ctx,1); intern->ctx = ctx;