com php-src: Add variadic type and obj info macros: Zend/zend_API.h
| From: | Joe Watkins | Date: | Sun, 22 Jan 2017 15:58:11 +0000 |
| Subject: | com php-src: Add variadic type and obj info macros: Zend/zend_API.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-96839@lists.php.net to get a copy of this message | ||
Commit: ab2489fae283d3f97dea40047d59f8baa947da1e
Author: Bogdan Padalko <pinepain@gmail.com> Sun, 22 Jan 2017 00:40:15 +0200
Committer: Joe Watkins <krakjoe@php.net> Sun, 22 Jan 2017 15:58:11 +0000
Parents: 7b8b2e50f6efacb52aed4fa500a16638c56c8ca4
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ab2489fae283d3f97dea40047d59f8baa947da1e
Log:
Add variadic type and obj info macros
Changed paths:
M Zend/zend_API.h
Diff:
diff --git a/Zend/zend_API.h b/Zend/zend_API.h
index 55f5e55..b8a6ecf 100644
--- a/Zend/zend_API.h
+++ b/Zend/zend_API.h
@@ -103,7 +103,9 @@ typedef struct _zend_fcall_info_cache {
#define ZEND_ARG_ARRAY_INFO(pass_by_ref, name, allow_null) { #name,
ZEND_TYPE_ENCODE(IS_ARRAY, allow_null), pass_by_ref, 0 },
#define ZEND_ARG_CALLABLE_INFO(pass_by_ref, name, allow_null) { #name,
ZEND_TYPE_ENCODE(IS_CALLABLE, allow_null), pass_by_ref, 0 },
#define ZEND_ARG_TYPE_INFO(pass_by_ref, name, type_hint, allow_null) { #name,
ZEND_TYPE_ENCODE(type_hint, allow_null), pass_by_ref, 0 },
-#define ZEND_ARG_VARIADIC_INFO(pass_by_ref, name) { #name, 0, pass_by_ref, 1 },
+#define ZEND_ARG_VARIADIC_INFO(pass_by_ref, name) { #name, 0,
pass_by_ref, 1 },
+#define ZEND_ARG_VARIADIC_TYPE_INFO(pass_by_ref, name, type_hint, allow_null) { #name,
ZEND_TYPE_ENCODE(type_hint, allow_null), pass_by_ref, 1 },
+#define ZEND_ARG_VARIADIC_OBJ_INFO(pass_by_ref, name, classname, allow_null) { #name,
ZEND_TYPE_ENCODE_CLASS_CONST(#classname, allow_null), pass_by_ref, 1 },
#define ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(name, return_reference, required_num_args,
classname, allow_null) \