From 0cec268d15e5aded8692ee8076e93d2839725918 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 15 Nov 2019 12:50:44 +0100 Subject: Support single class unions in gen stubs --- Zend/zend_API.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Zend/zend_API.h') diff --git a/Zend/zend_API.h b/Zend/zend_API.h index 85c2d495a6..7f33d61f0c 100644 --- a/Zend/zend_API.h +++ b/Zend/zend_API.h @@ -128,6 +128,10 @@ typedef struct _zend_fcall_info_cache { static const zend_internal_arg_info name[] = { \ { (const char*)(zend_uintptr_t)(required_num_args), ZEND_TYPE_INIT_MASK(type | _ZEND_ARG_INFO_FLAGS(return_reference, 0)) }, +#define ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(name, return_reference, required_num_args, class_name, type) \ + static const zend_internal_arg_info name[] = { \ + { (const char*)(zend_uintptr_t)(required_num_args), ZEND_TYPE_INIT_CLASS_CONST_MASK(#class_name, type | _ZEND_ARG_INFO_FLAGS(return_reference, 0)) }, + #define ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(name, return_reference, required_num_args, type, allow_null) \ static const zend_internal_arg_info name[] = { \ { (const char*)(zend_uintptr_t)(required_num_args), ZEND_TYPE_INIT_CODE(type, allow_null, _ZEND_ARG_INFO_FLAGS(return_reference, 0)) }, -- cgit v1.2.1