1
0
mirror of https://github.com/php/php-src.git synced 2026-04-07 16:13:32 +02:00
Files
Ilija Tovilo 66ce205718 Fix incorrect zval type_flags in preg_replace_callback_array() for immutable arrays
The ZVAL_ARR macro always set the zval type_info to IS_ARRAY_EX, even if the
hash table is immutable. Since in preg_replace_callback_array() we can return
the passed array directly, and that passed array can be immutable, we need to
reset the type_flags to keep the VM from performing ref-counting on the array.

Fixes GH-10968
Closes GH-10970
2023-03-31 14:41:41 +02:00
..
2022-08-31 14:22:44 +02:00
2021-07-06 11:47:00 +02:00
2019-05-25 11:42:14 +02:00