Skip to content

Commit 79cafc8

Browse files
committed
Merge branch 'PHP-8.2' into PHP-8.3
2 parents 0dea244 + b06d6db commit 79cafc8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 8.3.4
44

5+
- Core:
6+
. Fixed array key as string (case insensitive) comparison typo
7+
for the second operand buffer size. (A. Slepykh)
8+
59
- Curl:
610
. Fix failing tests due to string changes in libcurl 8.6.0. (Ayesh)
711

ext/standard/array.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ static zend_always_inline int php_array_key_compare_string_case_unstable_i(Bucke
188188
l2 = s->key->len;
189189
} else {
190190
s2 = zend_print_long_to_buf(buf2 + sizeof(buf2) - 1, s->h);
191-
l2 = buf2 + sizeof(buf2) - 1 - s1;
191+
l2 = buf2 + sizeof(buf2) - 1 - s2;
192192
}
193193
return zend_binary_strcasecmp_l(s1, l1, s2, l2);
194194
}
@@ -238,7 +238,7 @@ static int php_array_key_compare_string_natural_general(Bucket *f, Bucket *s, in
238238
l2 = s->key->len;
239239
} else {
240240
s2 = zend_print_long_to_buf(buf2 + sizeof(buf2) - 1, s->h);
241-
l2 = buf2 + sizeof(buf2) - 1 - s1;
241+
l2 = buf2 + sizeof(buf2) - 1 - s2;
242242
}
243243
return strnatcmp_ex(s1, l1, s2, l2, fold_case);
244244
}

0 commit comments

Comments
 (0)