summaryrefslogtreecommitdiff
path: root/ext/com_dotnet/com_handlers.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-08-25 12:12:45 +0200
committerAnatol Belski <ab@php.net>2016-08-25 12:12:45 +0200
commit392c5ea472145a8f15b78376d0ab155b16bbab43 (patch)
tree83f0b5ccabc31a1c27f567d41f1671bc12b79ea1 /ext/com_dotnet/com_handlers.c
parent4c13a7f5c4d0fcbfdd6cd60d84bc88f7c34bfb4f (diff)
downloadphp-git-392c5ea472145a8f15b78376d0ab155b16bbab43.tar.gz
Fixed bug #72922 COM called from PHP does not return out parameters
Diffstat (limited to 'ext/com_dotnet/com_handlers.c')
-rw-r--r--ext/com_dotnet/com_handlers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/com_dotnet/com_handlers.c b/ext/com_dotnet/com_handlers.c
index 122c618426..415fcb92f4 100644
--- a/ext/com_dotnet/com_handlers.c
+++ b/ext/com_dotnet/com_handlers.c
@@ -305,7 +305,8 @@ static union _zend_function *com_method_get(zend_object **object_ptr, zend_strin
for (i = 0; i < bindptr.lpfuncdesc->cParams; i++) {
f.arg_info[i].allow_null = 1;
if (bindptr.lpfuncdesc->lprgelemdescParam[i].paramdesc.wParamFlags & PARAMFLAG_FOUT) {
- f.arg_info[i].pass_by_reference = 1;
+ f.arg_info[i].pass_by_reference = ZEND_SEND_BY_REF;
+ ZEND_SET_ARG_FLAG(fptr, i + 1, ZEND_SEND_BY_REF);
}
}