mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2026-01-12 03:19:34 +00:00
Simplify previous
This commit is contained in:
parent
0e35e0bbf8
commit
512acab50b
1 changed files with 4 additions and 11 deletions
|
|
@ -90,15 +90,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_gnupg_void_iterator_method, 0, 0, 0)
|
|||
ZEND_END_ARG_INFO()
|
||||
/* }}} */
|
||||
|
||||
#if PHP_VERSION_ID < 80100
|
||||
|
||||
#define arginfo_gnupg_current arginfo_gnupg_void_iterator_method
|
||||
#define arginfo_gnupg_key arginfo_gnupg_void_iterator_method
|
||||
#define arginfo_gnupg_valid arginfo_gnupg_void_iterator_method
|
||||
#define arginfo_gnupg_next arginfo_gnupg_void_iterator_method
|
||||
#define arginfo_gnupg_rewind arginfo_gnupg_void_iterator_method
|
||||
|
||||
#else
|
||||
#ifndef ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX
|
||||
#define ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(name, return_reference, required_num_args, type, allow_null) \
|
||||
ZEND_BEGIN_ARG_INFO_EX(name, 0, return_reference, required_num_args)
|
||||
#endif
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_gnupg_current, 0, 0, IS_MIXED, 0)
|
||||
ZEND_END_ARG_INFO()
|
||||
|
|
@ -113,8 +108,6 @@ ZEND_END_ARG_INFO()
|
|||
|
||||
#define arginfo_gnupg_rewind arginfo_gnupg_next
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/* {{{ method list gnupg_keylistiterator */
|
||||
static zend_function_entry gnupg_keylistiterator_methods[] = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue