Skip to content

Commit 1f63f3a

Browse files
henderkesGirgias
andauthored
Update ext/standard/string.c
Co-authored-by: Gina Peter Banyard <girgias@php.net>
1 parent f39b100 commit 1f63f3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/string.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5206,7 +5206,7 @@ static zend_string *try_setlocale_str(zend_long cat, zend_string *loc) {
52065206
if (len == 1 && *retval == 'C') {
52075207
/* C locale is represented as NULL. */
52085208
BG(ctype_string) = NULL;
5209-
} else if (zend_string_equals_cstr(loc, ZSTR_VAL(ret_str), ZSTR_LEN(ret_str))) {
5209+
} else if (zend_string_equals(loc, ret_str)) {
52105210
BG(ctype_string) = zend_string_copy(loc);
52115211
} else {
52125212
BG(ctype_string) = zend_string_copy(ret_str);

0 commit comments

Comments
 (0)