mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2026-12-01 21:18:50 +00:00
Fix build with PHP 8.0 and older by defining tentative return type macro
This commit is contained in:
parent
cfec76eba5
commit
838c23f4e3
1 changed files with 6 additions and 0 deletions
|
|
@ -35,4 +35,10 @@
|
|||
#define GNUPG_COMPARE_HANDLER_NAME compare
|
||||
#endif
|
||||
|
||||
/* tentative return types added in PHP 8.1 */
|
||||
#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
|
||||
|
||||
#endif /* PHP_GNUPG_COMPAT_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue