From 589bdf30b2bea10172a49bcad26d44b18f192556 Mon Sep 17 00:00:00 2001 From: George Peter Banyard Date: Mon, 19 Oct 2020 15:19:15 +0100 Subject: Implement Explicit octal notation for integers RFC RFC: https://wiki.php.net/rfc/explicit_octal_notation Add an extensive test suits for other variants of integer literals Closes GH-6360 --- UPGRADING | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'UPGRADING') diff --git a/UPGRADING b/UPGRADING index 953082a7a0..38dfda996a 100644 --- a/UPGRADING +++ b/UPGRADING @@ -65,6 +65,11 @@ PHP 8.1 UPGRADE NOTES 2. New Features ======================================== +- Core: + . It is now possible to specify octal integer by using the explicit "0o"/"0O" + prefix similar to hexadecimal ("0x"/"0X) and binary ("0b"/"0B") integer literals + RFC: https://wiki.php.net/rfc/explicit_octal_notation + - hash: . The following functions have changed signatures: @@ -101,6 +106,15 @@ PHP 8.1 UPGRADE NOTES 5. Changed Functions ======================================== +- Filter: + . The FILTER_FLAG_ALLOW_OCTAL flag of the FILTER_VALIDATE_INT filter now accept + octal string with the leading octal prefix ("0o"/"0O") + RFC: https://wiki.php.net/rfc/explicit_octal_notation + +- GMP: + . All GMP function now accept octal string with the leading octal prefix ("0o"/"0O") + RFC: https://wiki.php.net/rfc/explicit_octal_notation + ======================================== 6. New Functions ======================================== -- cgit v1.2.1