mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
Merge branch 'PHP-7.4' into PHP-8.0
* PHP-7.4: Fix #76167: mbstring may use pointer from some previous request
This commit is contained in:
commit
6e6a8443a8
4
NEWS
4
NEWS
@ -10,6 +10,10 @@ PHP NEWS
|
||||
. Fixed bug #81500 (Interval serialization regression since 7.3.14 / 7.4.2).
|
||||
(cmb)
|
||||
|
||||
- MBString:
|
||||
. Fixed bug #76167 (mbstring may use pointer from some previous request).
|
||||
(cmb, cataphract)
|
||||
|
||||
- Opcache:
|
||||
. Fixed bug #81512 (Unexpected behavior with arrays and JIT). (Dmitry)
|
||||
|
||||
|
@ -4215,10 +4215,6 @@ static void php_mb_populate_current_detect_order_list(void)
|
||||
const mbfl_encoding **entry = 0;
|
||||
size_t nentries;
|
||||
|
||||
if (MBSTRG(current_detect_order_list)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (MBSTRG(detect_order_list) && MBSTRG(detect_order_list_size)) {
|
||||
nentries = MBSTRG(detect_order_list_size);
|
||||
entry = (const mbfl_encoding **)safe_emalloc(nentries, sizeof(mbfl_encoding*), 0);
|
||||
|
Loading…
Reference in New Issue
Block a user