mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2024-11-22 06:27:08 +00:00
Fix compatibility with gpgme > 1.2.0
This commit is contained in:
parent
994d965681
commit
8f439b534f
1 changed files with 1 additions and 0 deletions
1
gnupg.c
1
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;
|
||||
|
|
Loading…
Reference in a new issue