php-src/ext/pcre
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
..
pcre2lib Fix pcre.jit on Apple Silicon 2022-08-31 14:22:44 +02:00
tests Fix incorrect zval type_flags in preg_replace_callback_array() for immutable arrays 2023-03-31 14:41:41 +02:00
config.w32 Merge branch 'PHP-7.4' 2019-05-25 11:42:14 +02:00
config0.m4 Fix typo "without-pcre-jit" 2021-07-06 11:47:00 +02:00
CREDITS
php_pcre.c Fix incorrect zval type_flags in preg_replace_callback_array() for immutable arrays 2023-03-31 14:41:41 +02:00
php_pcre.def Sync leading and final newlines in source code files 2018-10-14 12:56:38 +02:00
php_pcre.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
php_pcre.stub.php Merge branch 'PHP-8.0' into PHP-8.1 2021-11-18 10:37:18 +01:00
php_pcre_arginfo.h Merge branch 'PHP-8.0' into PHP-8.1 2021-11-18 10:37:18 +01:00