Fix build with PHP 8.0 and older by defining tentative return type macro

This commit is contained in:
Jakub Zelenka 2026-11-22 14:15:26 +01:00
commit 838c23f4e3
No known key found for this signature in database
GPG key ID: 1C0779DC5C0A9DE4

View file

@ -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 */