diff --git a/php_gnupg_compat.h b/php_gnupg_compat.h index cecf957..127b595 100644 --- a/php_gnupg_compat.h +++ b/php_gnupg_compat.h @@ -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 */ \ No newline at end of file