diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-02-21 17:38:25 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-07-22 12:23:49 +0200 |
commit | acbf7802af7b88d16497971494f5dc42c4e08ce6 (patch) | |
tree | 571f3a6bb871e0c6d4948e4e5cb1406e1305a04f /UPGRADING | |
parent | 2940839d280d307fd1e8a06aefbd1fb31f1d3242 (diff) | |
download | php-git-acbf7802af7b88d16497971494f5dc42c4e08ce6.tar.gz |
Improved number to string comparison semantics
RFC: https://wiki.php.net/rfc/string_to_number_comparison
Closes GH-3886.
Diffstat (limited to 'UPGRADING')
-rw-r--r-- | UPGRADING | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -199,6 +199,11 @@ PHP 8.0 UPGRADE NOTES RFC: https://wiki.php.net/rfc/inheritance_private_methods . If an object constructor exit()s, the object destructor will no longer be called. This matches the behavior when the constructor throws. + . Non-strict comparisons between numbers and non-numeric strings now work by + casting the number to string and comparing the strings. Comparisons between + numbers and numeric strings continue to work as before. Notably, this means + that `0 == "not-a-number"` is considered false now. + RFC: https://wiki.php.net/rfc/string_to_number_comparison - COM: . Removed the ability to import case-insensitive constants from type |