Chris@14: Symfony Polyfill / Php70 Chris@14: ======================== Chris@14: Chris@14: This component provides features unavailable in releases prior to PHP 7.0: Chris@14: Chris@14: - [`intdiv`](http://php.net/intdiv) Chris@14: - [`preg_replace_callback_array`](http://php.net/preg_replace_callback_array) Chris@14: - [`error_clear_last`](http://php.net/error_clear_last) Chris@14: - `random_bytes` and `random_int` (from [paragonie/random_compat](https://github.com/paragonie/random_compat)) Chris@14: - [`*Error` throwable classes](http://php.net/Error) Chris@14: - [`PHP_INT_MIN`](http://php.net/manual/en/reserved.constants.php#constant.php-int-min) Chris@14: - `SessionUpdateTimestampHandlerInterface` Chris@14: Chris@14: More information can be found in the Chris@14: [main Polyfill README](https://github.com/symfony/polyfill/blob/master/README.md). Chris@14: Chris@14: Compatibility notes Chris@14: =================== Chris@14: Chris@14: To write portable code between PHP5 and PHP7, some care must be taken: Chris@14: - `\*Error` exceptions must be caught before `\Exception`; Chris@14: - after calling `error_clear_last()`, the result of `$e = error_get_last()` must be Chris@14: verified using `isset($e['message'][0])` instead of `null !== $e`. Chris@14: Chris@14: License Chris@14: ======= Chris@14: Chris@14: This library is released under the [MIT license](LICENSE).