- Core
. Added null coalesce operator (??).
(RFC: https://wiki.php.net/rfc/isset_ternary)
- . Support for strings with length >= 2^31 bytes in 64 bit builds
- . Closure::call() method added
+ . Support for strings with length >= 2^31 bytes in 64 bit builds.
+ . Closure::call() method added.
. Added \u{xxxxxx} Unicode Codepoint Escape Syntax for double-quoted strings
and heredocs.
- . define() now supports arrays as constant values, fixing an oversight where define() did not support arrays yet const syntax did. (Andrea, Dmitry)
+ . define() now supports arrays as constant values, fixing an oversight where define() did not support arrays yet const syntax did.
- Standard
. intdiv() function for integer division added.
- parse_ini_file():
- parse_ini_string():
- Added scanner mode INI_SCANNER_TYPED to yield typed .ini values.
+ . Added scanner mode INI_SCANNER_TYPED to yield typed .ini values.
- unserialize():
- Added second parameter for unserialize function
- (RFC: https://wiki.php.net/rfc/secure_unserialize) allowing to specify
- acceptable classes:
- unserialize($foo, ["allowed_classes" => ["MyClass", "MyClass2"]);
+ . Added second parameter for unserialize function
+ (RFC: https://wiki.php.net/rfc/secure_unserialize) allowing to specify
+ acceptable classes:
+ unserialize($foo, ["allowed_classes" => ["MyClass", "MyClass2"]);
========================================
6. New Functions
========================================
- GMP
- Added gmp_random_seed()
+ . Added gmp_random_seed()
========================================
7. New Classes and Interfaces
========================================
- Core
- . Support for native 64 bit integers in 64 bit builds
- . Support for large files in 64 bit builds
+ . Support for native 64 bit integers in 64 bit builds.
+ . Support for large files in 64 bit builds.
========================================
13. Other Changes
. Instead of being undefined and platform-dependent, NaN and Infinity will
always be zero when casted to integer.
. Calling a method on a non-object no longer raises a fatal error; see
- also: https://wiki.php.net/rfc/catchable-call-to-member-of-non-object
+ also: https://wiki.php.net/rfc/catchable-call-to-member-of-non-object.