From 6311581ac64372164de7ba24f086eb3b0b91eabb Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 19 Mar 2019 12:11:05 +0100 Subject: Fix bug #73948 If PREG_UNMATCHED_AS_NULL is used, make sure that unmatched capturing groups at the end are also set to null, rather than just those in the middle. --- UPGRADING | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'UPGRADING') diff --git a/UPGRADING b/UPGRADING index d8dfe2b8a5..fc8fa459ce 100644 --- a/UPGRADING +++ b/UPGRADING @@ -50,6 +50,11 @@ PHP 7.4 UPGRADE NOTES function does not throw, so explicitly checking it is not necessary. RFC: http://php.net/manual/de/function.openssl-random-pseudo-bytes.php +- PCRE: + . When PREG_UNMATCHED_AS_NULL mode is used, trailing unmatched capturing + groups will now also be set to null (or [null, -1] if offset capture is + enabled). This means that the size of the $matches will always be the same. + - PEAR: . Installation of PEAR (including PECL) is no longer enabled by default. It can be explicitly enabled using --with-pear. This option is deprecated and -- cgit v1.2.1