Skip to content

Commit b6f1b61

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
2 parents b1189b1 + 4cd563d commit b6f1b61

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
@@ -6678,6 +6678,7 @@ void zend_compile_use(zend_ast *ast) /* {{{ */
66786678
}
66796679

66806680
zend_string_addref(old_name);
6681+
old_name = zend_new_interned_string(old_name);
66816682
if (!zend_hash_add_ptr(current_import, lookup_name, old_name)) {
66826683
zend_error_noreturn(E_COMPILE_ERROR, "Cannot use%s %s as %s because the name "
66836684
"is already in use", zend_get_use_type_str(type), ZSTR_VAL(old_name), ZSTR_VAL(new_name));

0 commit comments

Comments
 (0)