summaryrefslogtreecommitdiff
path: root/UPGRADING
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-03-19 12:11:05 +0100
committerNikita Popov <nikita.ppv@gmail.com>2019-03-21 09:50:20 +0100
commit6311581ac64372164de7ba24f086eb3b0b91eabb (patch)
tree2792a341f9ee909677386a7a4f1ec12a8120fda6 /UPGRADING
parentc1095cfed7af03d5870e891fab3cf33d0ff43921 (diff)
downloadphp-git-6311581ac64372164de7ba24f086eb3b0b91eabb.tar.gz
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.
Diffstat (limited to 'UPGRADING')
-rw-r--r--UPGRADING5
1 files changed, 5 insertions, 0 deletions
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