From 5d456c1c6670fff1380238175daffe83443bc445 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 17 Jan 2018 03:01:00 +0300 Subject: [PATCH] Replaced separation with destructor --- ext/com_dotnet/com_com.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.50.1