com php-src: fix check for args by ref: ext/com_dotnet/com_ handlers.c
| From: | Anatol Belski | Date: | Thu, 25 Aug 2016 16:06:47 +0000 |
| Subject: | com php-src: fix check for args by ref: ext/com_dotnet/com_ handlers.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-94062@lists.php.net to get a copy of this message | ||
Commit: 51d19c12a5eaad5d952e60259a82d8726f3f30bc
Author: Anatol Belski <ab@php.net> Thu, 25 Aug 2016 18:06:47 +0200
Parents: 5f6a1d14722ca3c76673055891aa24b7fe353055
Branches: PHP-7.0 PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=51d19c12a5eaad5d952e60259a82d8726f3f30bc
Log:
fix check for args by ref
Changed paths:
M ext/com_dotnet/com_handlers.c
Diff:
diff --git a/ext/com_dotnet/com_handlers.c b/ext/com_dotnet/com_handlers.c
index 415fcb9..a477093 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;