Skip to content

Commit 4cd563d

Browse files
committed
Merge branch 'PHP-7.2' into PHP-7.3
2 parents 7aa1dd3 + f3fdf57 commit 4cd563d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Zend/zend_compile.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6694,6 +6694,7 @@ void zend_compile_use(zend_ast *ast) /* {{{ */
66946694
}
66956695

66966696
zend_string_addref(old_name);
6697+
old_name = zend_new_interned_string(old_name);
66976698
if (!zend_hash_add_ptr(current_import, lookup_name, old_name)) {
66986699
zend_error_noreturn(E_COMPILE_ERROR, "Cannot use%s %s as %s because the name "
66996700
"is already in use", zend_get_use_type_str(type), ZSTR_VAL(old_name), ZSTR_VAL(new_name));

0 commit comments

Comments
 (0)