summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-08-25 13:48:50 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2020-08-26 15:00:02 +0200
commit75ac3f1cbabf0a88a092abcc31635a91215912de (patch)
tree24eff09053a22965a04c7a8568f7ead4f9e8a8ac
parent5ff15e2651850ba30dde69056436b8774fac9166 (diff)
downloadphp-git-75ac3f1cbabf0a88a092abcc31635a91215912de.tar.gz
Separate COM::__construct()s $server_name array
This may otherwise be modified.
-rw-r--r--ext/com_dotnet/com_com.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/com_dotnet/com_com.c b/ext/com_dotnet/com_com.c
index 5c6cc5ab14..2077e39c4a 100644
--- a/ext/com_dotnet/com_com.c
+++ b/ext/com_dotnet/com_com.c
@@ -61,7 +61,7 @@ PHP_FUNCTION(com_create_instance)
&module_name, &module_name_len, &server_name, &server_name_len,
&cp, &typelib_name, &typelib_name_len) &&
FAILURE == zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET,
- ZEND_NUM_ARGS(), "sa|ls",
+ ZEND_NUM_ARGS(), "sa/|ls",
&module_name, &module_name_len, &server_params, &cp,
&typelib_name, &typelib_name_len)) {