summaryrefslogtreecommitdiff
path: root/ext/com_dotnet/com_handlers.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2004-01-13 00:40:14 +0000
committerWez Furlong <wez@php.net>2004-01-13 00:40:14 +0000
commitb7d0b397bc748d035a43eb0ee918279b0b5df2fe (patch)
treed858a9bcb4b48e0f120c13c2e8a1c7364f4d203e /ext/com_dotnet/com_handlers.c
parent47dddfa4ffeddfa4d4aaa3614279db77d078df99 (diff)
downloadphp-git-b7d0b397bc748d035a43eb0ee918279b0b5df2fe.tar.gz
Support automatic handling of byref parameters
Diffstat (limited to 'ext/com_dotnet/com_handlers.c')
-rw-r--r--ext/com_dotnet/com_handlers.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/com_dotnet/com_handlers.c b/ext/com_dotnet/com_handlers.c
index 3ed189aa0f..5cb69b5ec3 100644
--- a/ext/com_dotnet/com_handlers.c
+++ b/ext/com_dotnet/com_handlers.c
@@ -306,7 +306,7 @@ static union _zend_function *com_method_get(zval *object, char *name, int len TS
static int com_call_method(char *method, INTERNAL_FUNCTION_PARAMETERS)
{
- zval **args = NULL;
+ zval ***args = NULL;
php_com_dotnet_object *obj;
int nargs;
VARIANT v;
@@ -321,13 +321,13 @@ static int com_call_method(char *method, INTERNAL_FUNCTION_PARAMETERS)
nargs = ZEND_NUM_ARGS();
if (nargs) {
- args = (zval **)safe_emalloc(sizeof(zval *), nargs, 0);
- zend_get_parameters_array(ht, nargs, args);
+ args = (zval ***)safe_emalloc(sizeof(zval *), nargs, 0);
+ zend_get_parameters_array_ex(nargs, args);
}
VariantInit(&v);
- if (SUCCESS == php_com_do_invoke(obj, method, -1, DISPATCH_METHOD|DISPATCH_PROPERTYGET, &v, nargs, args TSRMLS_CC)) {
+ if (SUCCESS == php_com_do_invoke_byref(obj, method, -1, DISPATCH_METHOD|DISPATCH_PROPERTYGET, &v, nargs, args TSRMLS_CC)) {
php_com_zval_from_variant(return_value, &v, obj->code_page TSRMLS_CC);
ret = SUCCESS;
VariantClear(&v);