Skip to content

Commit 8adddab

Browse files
committed
Merge branch 'PHP-7.1'
* PHP-7.1: fix check for args by ref
2 parents fe13ee0 + 9f0f7c0 commit 8adddab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/com_dotnet/com_handlers.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,6 @@ static union _zend_function *com_method_get(zend_object **object_ptr, zend_strin
279279
f.fn_flags = ZEND_ACC_CALL_VIA_HANDLER;
280280
f.function_name = zend_string_copy(name);
281281
f.handler = PHP_FN(com_method_handler);
282-
zend_set_function_arg_flags((zend_function*)&f);
283282

284283
fptr = &f;
285284

@@ -306,11 +305,11 @@ static union _zend_function *com_method_get(zend_object **object_ptr, zend_strin
306305
f.arg_info[i].allow_null = 1;
307306
if (bindptr.lpfuncdesc->lprgelemdescParam[i].paramdesc.wParamFlags & PARAMFLAG_FOUT) {
308307
f.arg_info[i].pass_by_reference = ZEND_SEND_BY_REF;
309-
ZEND_SET_ARG_FLAG(fptr, i + 1, ZEND_SEND_BY_REF);
310308
}
311309
}
312310

313311
f.num_args = bindptr.lpfuncdesc->cParams;
312+
zend_set_function_arg_flags((zend_function*)&f);
314313

315314
ITypeInfo_ReleaseFuncDesc(TI, bindptr.lpfuncdesc);
316315
break;

0 commit comments

Comments
 (0)