Skip to content

Commit b172d3b

Browse files
committed
Add support for binary, and octal number prefixes for INI settings
This drops support for PHP_MIN_VALUE as we now need to manually change the sign of the result. Therefore the lowest possible value without overflow is PHP_MIN_VALUE+1.
1 parent 5a86802 commit b172d3b

6 files changed

+3175
-10
lines changed

UPGRADING

+5-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ PHP 8.2 UPGRADE NOTES
231231

232232
- OpenSSL:
233233
. openssl_cipher_key_length(): Returns a key length for the supplied
234-
cipher.
234+
cipher.
235235

236236
- Reflection:
237237
. ReflectionFunction::isAnonymous()
@@ -425,6 +425,10 @@ PHP 8.2 UPGRADE NOTES
425425
11. Changes to INI File Handling
426426
========================================
427427

428+
- INI integer values now support the 0b/0B literal prefixes for binary numbers
429+
and the 0o/0O prefixes for octal numbers.
430+
Note the 0x/0X hexadecimal prefixes and using a single 0 for octal numbers
431+
was already supported.
428432
- Parsing of some ill-formatted values will now trigger a warning when this was
429433
silently ignored before. Interpretation of these values is not changed, for
430434
backwards compatibility. This affects the following settings:

0 commit comments

Comments
 (0)