]> granicus.if.org Git - php/commitdiff
Replaced separation with destructor
authorDmitry Stogov <dmitry@zend.com>
Wed, 17 Jan 2018 00:01:00 +0000 (03:01 +0300)
committerDmitry Stogov <dmitry@zend.com>
Wed, 17 Jan 2018 00:01:00 +0000 (03:01 +0300)
ext/com_dotnet/com_com.c

index 342b7c31ecb169403935eda15f4e89670bb08c57..f91c5fcbb9c0e0d99b0ca991bc78b2cdad8a1503 100644 (file)
@@ -564,7 +564,8 @@ int php_com_do_invoke_byref(php_com_dotnet_object *obj, zend_internal_function *
                                        zval *arg = &args[nargs - i - 1];
 
                                        ZVAL_DEREF(arg);
-                                       SEPARATE_ZVAL_NOREF(arg);
+                                       zval_ptr_dtor(arg);
+                                       ZVAL_NULL(arg);
 
                                        /* if the variant is pointing at the byref_vals, we need to map
                                         * the pointee value as a zval; otherwise, the value is pointing