php-src/ext/pcre
Gina Peter Banyard d6cc31cf95
ext/pcre: Refactor preg_replace_callback(_array)() to not pass a useless FCI (#17365)
* ext/pcre: Refactor php_pcre_replace_func_impl() to not rely on an FCI

* ext/pcre: Refactor populate_subpat_array() to take subject as a HashTable*

This makes the assumption the zval is always an array explicit

* ext/pcre: Refactor php_pcre_replace_func_impl()

We don't need the FCI any more, and we always have the subject as a zend_string.

* ext/pcre: Refactor php_pcre_replace_func()

We don't need the FCI any more

* ext/pcre: Refactor php_replace_in_subject_func()

We don't need the FCI any more
Make the Hashtable param const
Throw exception on non string entries

* ext/pcre: Refactor preg_replace_func_impl()

We don't need the FCI anymore
Make the Hashtable params const
Rename function to indicate it is a PHP pcre function

* ext/pcre: Add trampoline tests for preg_replace_callback(_array)()

* ext/pcre: Handle trampolines properly for preg_replace_callback(_array)()

* Revert FCI passing removal
2025-01-08 18:05:06 +00:00
..
pcre2lib ext/pcre: update Config to match upstream (#14509) 2024-06-08 21:34:18 +02:00
tests ext/pcre: Refactor preg_replace_callback(_array)() to not pass a useless FCI (#17365) 2025-01-08 18:05:06 +00:00
config.w32 Sync preprocessor macros help texts (#15218) 2024-08-04 12:52:16 +02:00
config0.m4 Autotools: Fix external PCRE JIT check (#15430) 2024-08-16 19:21:13 +02:00
CREDITS
php_pcre.c ext/pcre: Refactor preg_replace_callback(_array)() to not pass a useless FCI (#17365) 2025-01-08 18:05:06 +00:00
php_pcre.def
php_pcre.h Fix UAF issues with PCRE after request shutdown 2024-09-11 18:49:19 +02:00
php_pcre.stub.php Implement stackless internal function calls 2024-02-06 17:42:28 +01:00
php_pcre_arginfo.h Implement "support doc comments for internal classes and functions" (#13266) 2024-02-25 08:41:31 +01:00