Skip to content

Commit 7fcf17c

Browse files
committed
Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0: Fix #76167: mbstring may use pointer from some previous request
2 parents 2e38728 + 6e6a844 commit 7fcf17c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ PHP NEWS
1414
. Fixed bug #81532 (Change of $depth behaviour in json_encode() on PHP 8.1).
1515
(Nikita)
1616

17+
- MBString:
18+
. Fixed bug #76167 (mbstring may use pointer from some previous request).
19+
(cmb, cataphract)
20+
1721
14 Oct 2021, PHP 8.1.0RC4
1822

1923
- CLI:

ext/mbstring/mbstring.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4202,10 +4202,6 @@ static void php_mb_populate_current_detect_order_list(void)
42024202
const mbfl_encoding **entry = 0;
42034203
size_t nentries;
42044204

4205-
if (MBSTRG(current_detect_order_list)) {
4206-
return;
4207-
}
4208-
42094205
if (MBSTRG(detect_order_list) && MBSTRG(detect_order_list_size)) {
42104206
nentries = MBSTRG(detect_order_list_size);
42114207
entry = (const mbfl_encoding **)safe_emalloc(nentries, sizeof(mbfl_encoding*), 0);

0 commit comments

Comments
 (0)