summaryrefslogtreecommitdiff
path: root/Zend/zend_API.h
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2017-10-19 00:02:56 +0300
committerDmitry Stogov <dmitry@zend.com>2017-10-19 00:02:56 +0300
commit272f5a1716155f21ccce8dc625aeeabbcbe6bdaa (patch)
tree766582a23c040de9c61aca0a2a6a70e1dd2e2e4f /Zend/zend_API.h
parentea915adb483cc274a6f2a273148fabe93e5a8720 (diff)
downloadphp-git-272f5a1716155f21ccce8dc625aeeabbcbe6bdaa.tar.gz
Extend zend_string API to avoid reallocation in zend_string_init_interned()
Diffstat (limited to 'Zend/zend_API.h')
-rw-r--r--Zend/zend_API.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/Zend/zend_API.h b/Zend/zend_API.h
index c3220d2685..df9e136e4a 100644
--- a/Zend/zend_API.h
+++ b/Zend/zend_API.h
@@ -193,9 +193,7 @@ typedef struct _zend_fcall_info_cache {
#define INIT_OVERLOADED_CLASS_ENTRY_EX(class_container, class_name, class_name_len, functions, handle_fcall, handle_propget, handle_propset, handle_propunset, handle_propisset) \
{ \
- zend_string *cl_name; \
- cl_name = zend_string_init(class_name, class_name_len, 1); \
- class_container.name = zend_new_interned_string(cl_name); \
+ class_container.name = zend_string_init_interned(class_name, class_name_len, 1); \
INIT_CLASS_ENTRY_INIT_METHODS(class_container, functions, handle_fcall, handle_propget, handle_propset, handle_propunset, handle_propisset) \
}