summaryrefslogtreecommitdiff
path: root/ext/com_dotnet
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-09-19 17:32:50 +0400
committerDmitry Stogov <dmitry@zend.com>2014-09-19 17:32:50 +0400
commitbccc653185d2fe8aa6ff83cf84db56a396c6bc05 (patch)
tree5288aafc3ed4e0542e0cb0a2d90b5bf59df60b1c /ext/com_dotnet
parent35f84676877564f3d4ead8f48bc98f72b7b20ff7 (diff)
downloadphp-git-bccc653185d2fe8aa6ff83cf84db56a396c6bc05.tar.gz
Avoid double IS_INTERNED() check
Diffstat (limited to 'ext/com_dotnet')
-rw-r--r--ext/com_dotnet/com_wrapper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/com_dotnet/com_wrapper.c b/ext/com_dotnet/com_wrapper.c
index 409b8f9956..98252eeb24 100644
--- a/ext/com_dotnet/com_wrapper.c
+++ b/ext/com_dotnet/com_wrapper.c
@@ -482,7 +482,7 @@ static void generate_dispids(php_dispatchex *disp TSRMLS_DC)
}
/* add the mappings */
- ZVAL_STR(&tmp2, zend_string_copy(name));
+ ZVAL_STR_COPY(&tmp2, name);
pid = zend_hash_next_free_element(disp->dispid_to_name);
zend_hash_index_update(disp->dispid_to_name, pid, &tmp2);
@@ -517,7 +517,7 @@ static void generate_dispids(php_dispatchex *disp TSRMLS_DC)
}
/* add the mappings */
- ZVAL_STR(&tmp2, zend_string_copy(name));
+ ZVAL_STR_COPY(&tmp2, name);
pid = zend_hash_next_free_element(disp->dispid_to_name);
zend_hash_index_update(disp->dispid_to_name, pid, &tmp2);