hrjy 49962c282f commit | %!s(int64=2) %!d(string=hai) anos | |
---|---|---|
.. | ||
Resources | %!s(int64=2) %!d(string=hai) anos | |
LICENSE | %!s(int64=2) %!d(string=hai) anos | |
Php70.php | %!s(int64=2) %!d(string=hai) anos | |
README.md | %!s(int64=2) %!d(string=hai) anos | |
bootstrap.php | %!s(int64=2) %!d(string=hai) anos | |
composer.json | %!s(int64=2) %!d(string=hai) anos |
This component provides features unavailable in releases prior to PHP 7.0:
intdiv
preg_replace_callback_array
error_clear_last
random_bytes
and random_int
(from paragonie/random_compat)*Error
throwable classesPHP_INT_MIN
SessionUpdateTimestampHandlerInterface
More information can be found in the main Polyfill README.
To write portable code between PHP5 and PHP7, some care must be taken:
\*Error
exceptions must be caught before \Exception
;error_clear_last()
, the result of $e = error_get_last()
must be
verified using isset($e['message'][0])
instead of null !== $e
.This library is released under the MIT license.