summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2017-12-01 17:00:11 +0300
committerDmitry Stogov <dmitry@zend.com>2017-12-01 17:00:11 +0300
commit24d5adbd5a5e61cc8f811afffcfae9ddd86b78e0 (patch)
tree95e49696c86adc688ffed8d3ef695fb3a876ada8
parent32e3d7b99e5f37d54d47bb385ef8d57c049b030a (diff)
downloadphp-git-24d5adbd5a5e61cc8f811afffcfae9ddd86b78e0.tar.gz
Set trailing zero
-rw-r--r--Zend/zend_compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index cd45300d66..b23e9f5cba 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -5601,7 +5601,7 @@ void zend_compile_use(zend_ast *ast) /* {{{ */
zend_string *ns_name = zend_string_alloc(ZSTR_LEN(current_ns) + 1 + ZSTR_LEN(new_name), 0);
zend_str_tolower_copy(ZSTR_VAL(ns_name), ZSTR_VAL(current_ns), ZSTR_LEN(current_ns));
ZSTR_VAL(ns_name)[ZSTR_LEN(current_ns)] = '\\';
- memcpy(ZSTR_VAL(ns_name) + ZSTR_LEN(current_ns) + 1, ZSTR_VAL(lookup_name), ZSTR_LEN(lookup_name));
+ memcpy(ZSTR_VAL(ns_name) + ZSTR_LEN(current_ns) + 1, ZSTR_VAL(lookup_name), ZSTR_LEN(lookup_name) + 1);
zend_check_use_conflict(type, old_name, new_name, ns_name);