From: Dmitry Stogov Date: Wed, 17 Jan 2018 00:01:00 +0000 (+0300) Subject: Replaced separation with destructor X-Git-Tag: php-7.3.0alpha1~608 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d456c1c6670fff1380238175daffe83443bc445;p=php Replaced separation with destructor --- diff --git a/ext/com_dotnet/com_com.c b/ext/com_dotnet/com_com.c index 342b7c31ec..f91c5fcbb9 100644 --- a/ext/com_dotnet/com_com.c +++ b/ext/com_dotnet/com_com.c @@ -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