summaryrefslogtreecommitdiff
path: root/ext/com_dotnet
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-09-11 00:23:54 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-09-11 11:00:18 +0200
commitc98d47696f5e459e6a3efdfd7034357208284b84 (patch)
tree40800320921080cbb90cd28a2178eae0a0c7823e /ext/com_dotnet
parenta59923befde4969eb619e90ed618a8eb89dcdef7 (diff)
downloadphp-git-c98d47696f5e459e6a3efdfd7034357208284b84.tar.gz
Consolidate new union type ZPP macro names
They will now follow the canonical order of types. Older macros are left intact due to maintaining BC. Closes GH-6112
Diffstat (limited to 'ext/com_dotnet')
-rw-r--r--ext/com_dotnet/com_com.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/com_dotnet/com_com.c b/ext/com_dotnet/com_com.c
index ef8d99567f..45080ba395 100644
--- a/ext/com_dotnet/com_com.c
+++ b/ext/com_dotnet/com_com.c
@@ -54,7 +54,7 @@ PHP_METHOD(com, __construct)
ZEND_PARSE_PARAMETERS_START(1, 4)
Z_PARAM_STRING(module_name, module_name_len)
Z_PARAM_OPTIONAL
- Z_PARAM_STR_OR_ARRAY_HT_OR_NULL(server_name, server_params)
+ Z_PARAM_ARRAY_HT_OR_STR_OR_NULL(server_params, server_name)
Z_PARAM_LONG(cp)
Z_PARAM_STRING(typelib_name, typelib_name_len)
ZEND_PARSE_PARAMETERS_END();
@@ -695,7 +695,7 @@ PHP_FUNCTION(com_event_sink)
Z_PARAM_OBJECT_OF_CLASS(object, php_com_variant_class_entry)
Z_PARAM_OBJECT(sinkobject)
Z_PARAM_OPTIONAL
- Z_PARAM_STR_OR_ARRAY_HT_OR_NULL(sink_str, sink_ht)
+ Z_PARAM_ARRAY_HT_OR_STR_OR_NULL(sink_ht, sink_str)
ZEND_PARSE_PARAMETERS_END();
RETVAL_FALSE;