mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2026-02-05 13:51:34 +00:00
Remove compatibility with PHP 7.1 and older (#63)
It means minimal PHP version is 7.2
This commit is contained in:
parent
4b9160b94d
commit
5081dab5fc
9 changed files with 517 additions and 550 deletions
|
|
@ -15,46 +15,26 @@
|
|||
#ifndef PHP_GNUPG_KEYLISTITERATOR_H
|
||||
#define PHP_GNUPG_KEYLISTITERATOR_H
|
||||
|
||||
extern zend_module_entry gnupg_keyiterator_module_entry;
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
#define PHP_GNUPG_API __declspec(dllexport)
|
||||
#else
|
||||
#define PHP_GNUPG_API
|
||||
#endif
|
||||
|
||||
#ifdef ZTS
|
||||
#include "TSRM.h"
|
||||
#endif
|
||||
|
||||
#include <gpgme.h>
|
||||
#include "phpc/phpc.h"
|
||||
|
||||
#define gnupg_keylistiterator_init() _gnupg_keylistiterator_init(INIT_FUNC_ARGS_PASSTHRU)
|
||||
extern int _gnupg_keylistiterator_init(INIT_FUNC_ARGS);
|
||||
|
||||
PHPC_OBJ_STRUCT_BEGIN(gnupg_keylistiterator)
|
||||
typedef struct _gnupg_keylistiterator_object {
|
||||
gpgme_ctx_t ctx;
|
||||
gpgme_error_t err;
|
||||
gpgme_key_t gpgkey;
|
||||
char *pattern;
|
||||
PHPC_OBJ_STRUCT_END()
|
||||
zend_object std;
|
||||
} gnupg_keylistiterator_object;
|
||||
|
||||
int gnupg_keylistiterator_init(INIT_FUNC_ARGS);
|
||||
|
||||
PHP_METHOD(gnupg_keylistiterator, __construct);
|
||||
PHP_METHOD(gnupg_keylistiterator, current);
|
||||
PHP_METHOD(gnupg_keylistiterator, key);
|
||||
PHP_METHOD(gnupg_keylistiterator, next);
|
||||
PHP_METHOD(gnupg_keylistiterator, rewind);
|
||||
PHP_METHOD(gnupg_keylistiterator, key);
|
||||
PHP_METHOD(gnupg_keylistiterator, valid);
|
||||
|
||||
#ifdef ZTS
|
||||
#define GNUPG_G(v) TSRMG(gnupg_globals_id, zend_gnupg_globals *, v)
|
||||
#else
|
||||
#define GNUPG_G(v) (gnupg_globals.v)
|
||||
#endif
|
||||
|
||||
#endif /* PHP_GNUPG_H */
|
||||
|
||||
#endif /* PHP_GNUPG_KEYLISTITERATOR_H */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue