Skip to content

Commit c95e9db

Browse files
Update ext/mbstring/mbstring.c
Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
1 parent c9c601e commit c95e9db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mbstring/mbstring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2981,7 +2981,7 @@ static zend_string* trim_each_wchar(zend_string *str, zend_string *what, MB_TRIM
29812981
what_out_len = enc->to_wchar(&what_in, &what_len, what_wchar_buf, 128, &state);
29822982
ZEND_ASSERT(what_out_len <= 128);
29832983
for (size_t i = 0; i < what_out_len; i++) {
2984-
zend_hash_index_add_new(&what_ht, what_wchar_buf[i], &val);
2984+
zend_hash_index_add(&what_ht, what_wchar_buf[i], &val);
29852985
}
29862986
}
29872987

0 commit comments

Comments
 (0)