summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2018-01-17 03:01:00 +0300
committerDmitry Stogov <dmitry@zend.com>2018-01-17 03:01:00 +0300
commit5d456c1c6670fff1380238175daffe83443bc445 (patch)
tree29fb0c612241fc124dfdb63bf877a54a10210e1a
parentc4fa7345dcca4bd3ba6bf1d337f8a9c8caaed5f0 (diff)
downloadphp-git-5d456c1c6670fff1380238175daffe83443bc445.tar.gz
Replaced separation with destructor
-rw-r--r--ext/com_dotnet/com_com.c3
1 files changed, 2 insertions, 1 deletions
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