mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2026-02-05 05:41:34 +00:00
Port to PHP 7, only 33.3% of the tests pass though (same as PHP 5). May be as stable
as the last release, but more work may be needed.
This commit is contained in:
parent
9edf765b60
commit
f7d42c6bc3
4 changed files with 230 additions and 284 deletions
|
|
@ -34,15 +34,25 @@ extern zend_module_entry gnupg_keyiterator_module_entry;
|
|||
extern int _gnupg_keylistiterator_init(INIT_FUNC_ARGS);
|
||||
|
||||
typedef struct _gnupg_keylistiterator_object{
|
||||
zend_object zo;
|
||||
gpgme_ctx_t ctx;
|
||||
gpgme_error_t err;
|
||||
gpgme_key_t gpgkey;
|
||||
zval pattern;
|
||||
zend_object zo;
|
||||
} gnupg_keylistiterator_object;
|
||||
|
||||
static zend_class_entry *gnupg_keylistiterator_class_entry;
|
||||
|
||||
static inline gnupg_keylistiterator_object *keylistiterator_object_from_obj(zend_object *obj) /* {{{ */ {
|
||||
return (gnupg_keylistiterator_object*)((char*)(obj) - XtOffsetOf(gnupg_keylistiterator_object, zo));
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
static inline gnupg_keylistiterator_object *Z_KEYLISTITERATORO_P(zval *zv) /* {{{ */ {
|
||||
return keylistiterator_object_from_obj(Z_OBJ_P((zv)));
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
PHP_METHOD(gnupg_keylistiterator, __construct);
|
||||
PHP_METHOD(gnupg_keylistiterator, current);
|
||||
PHP_METHOD(gnupg_keylistiterator, next);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue