]> granicus.if.org Git - php/commitdiff
fix crash when calling com methods
authorRob Richards <rrichards@php.net>
Sat, 20 Nov 2004 11:40:49 +0000 (11:40 +0000)
committerRob Richards <rrichards@php.net>
Sat, 20 Nov 2004 11:40:49 +0000 (11:40 +0000)
 - due to change in Zend

ext/com_dotnet/com_handlers.c

index 82713c67c7fb7dcd47cce4b7f39d69f071c0530c..dde8513ce7c3c3659fb55a43d3a3b61322e39929 100644 (file)
@@ -293,12 +293,13 @@ static PHP_FUNCTION(com_method_handler)
                        INTERNAL_FUNCTION_PARAM_PASSTHRU);
 }
 
-static union _zend_function *com_method_get(zval *object, char *name, int len TSRMLS_DC)
+static union _zend_function *com_method_get(zval **object_ptr, char *name, int len TSRMLS_DC)
 {
        zend_internal_function f, *fptr = NULL;
        php_com_dotnet_object *obj;
        union _zend_function *func;
        DISPID dummy;
+       zval *object = *object_ptr;
 
        obj = CDNO_FETCH(object);