1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/ext
Louis-Arnaud 5bd1bbdc50 ext/pcre: Fix preg_grep() returning partial array instead of false on error (#21260)
When a PCRE execution error occurs (e.g. malformed UTF-8 with /u
modifier), preg_grep() was returning a partial result array containing
only the entries processed before the error. All other preg_* functions
return false on execution errors.

After the match loop, check PCRE_G(error_code) and if an error
occurred, destroy the partial array and return false instead.

Fixes GH-11936
2026-02-26 16:14:53 +00:00
..
2026-02-18 13:52:00 +01:00
2026-02-05 18:39:22 +01:00
2026-01-24 11:39:28 +00:00
2026-02-23 20:46:52 +00:00
2026-02-17 06:51:21 +09:00
2026-02-25 17:19:52 +03:00
2026-02-17 21:47:55 +01:00
2026-02-23 21:26:18 +00:00
2026-01-28 18:15:04 +00:00
2026-02-17 04:27:35 +00:00
2026-02-04 17:10:53 +01:00
2026-02-15 23:28:51 +01:00
2026-02-24 02:11:56 +01:00