diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2020-12-13 19:00:51 +0100 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2020-12-13 23:55:33 +0100 |
commit | 2b7eb0e26a1816a3c5ddb28dd53f98ae0ecef047 (patch) | |
tree | d2c2a44268678ce0beb01dad86e66803db613fdc /UPGRADING | |
parent | 269a8841ae6edae3bc0ed8675390c78bd9f09bd8 (diff) | |
download | php-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-- | UPGRADING | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 ======================================== |