summaryrefslogtreecommitdiff
path: root/UPGRADING
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-12-13 19:00:51 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2020-12-13 23:55:33 +0100
commit2b7eb0e26a1816a3c5ddb28dd53f98ae0ecef047 (patch)
treed2c2a44268678ce0beb01dad86e66803db613fdc /UPGRADING
parent269a8841ae6edae3bc0ed8675390c78bd9f09bd8 (diff)
downloadphp-git-2b7eb0e26a1816a3c5ddb28dd53f98ae0ecef047.tar.gz
Disallow version_compare() $operator abbreviations
`version_compare()` does a sloppy check for the `$operators` argument which allows arbitrary abbreviations of the supported operators to be accepted. This is both undocumented and unexpected, and could lead to subtle BC breaks, if the order of the comparisions will be changed. Therefore we change to strict comparisons. Closes GH-6510.
Diffstat (limited to 'UPGRADING')
-rw-r--r--UPGRADING3
1 files changed, 3 insertions, 0 deletions
diff --git a/UPGRADING b/UPGRADING
index c1d4e564c4..a8ae9feeee 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -19,6 +19,9 @@ PHP 8.1 UPGRADE NOTES
1. Backward Incompatible Changes
========================================
+- Standard:
+ . version_compare() no longer accepts undocumented operator abbreviations.
+
========================================
2. New Features
========================================