summaryrefslogtreecommitdiff
path: root/ext/com_dotnet/com_handlers.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-08-25 18:06:47 +0200
committerAnatol Belski <ab@php.net>2016-08-25 18:06:47 +0200
commit51d19c12a5eaad5d952e60259a82d8726f3f30bc (patch)
treee62067fc388d7396a50f7d78010dfc91a970ac5d /ext/com_dotnet/com_handlers.c
parent5f6a1d14722ca3c76673055891aa24b7fe353055 (diff)
downloadphp-git-51d19c12a5eaad5d952e60259a82d8726f3f30bc.tar.gz
fix check for args by ref
Diffstat (limited to 'ext/com_dotnet/com_handlers.c')
-rw-r--r--ext/com_dotnet/com_handlers.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/com_dotnet/com_handlers.c b/ext/com_dotnet/com_handlers.c
index 415fcb92f4..a477093311 100644
--- a/ext/com_dotnet/com_handlers.c
+++ b/ext/com_dotnet/com_handlers.c
@@ -279,7 +279,6 @@ static union _zend_function *com_method_get(zend_object **object_ptr, zend_strin
f.fn_flags = ZEND_ACC_CALL_VIA_HANDLER;
f.function_name = zend_string_copy(name);
f.handler = PHP_FN(com_method_handler);
- zend_set_function_arg_flags((zend_function*)&f);
fptr = &f;
@@ -306,11 +305,11 @@ static union _zend_function *com_method_get(zend_object **object_ptr, zend_strin
f.arg_info[i].allow_null = 1;
if (bindptr.lpfuncdesc->lprgelemdescParam[i].paramdesc.wParamFlags & PARAMFLAG_FOUT) {
f.arg_info[i].pass_by_reference = ZEND_SEND_BY_REF;
- ZEND_SET_ARG_FLAG(fptr, i + 1, ZEND_SEND_BY_REF);
}
}
f.num_args = bindptr.lpfuncdesc->cParams;
+ zend_set_function_arg_flags((zend_function*)&f);
ITypeInfo_ReleaseFuncDesc(TI, bindptr.lpfuncdesc);
break;