krz/vox-populi
A Tumblr web client.
clone: git clone https://gitbay.org/krz/vox-populi.git
main: vendor/symfony/polyfill-php70/README.md · raw
1Symfony Polyfill / Php70
2========================
3
4This component provides features unavailable in releases prior to PHP 7.0:
5
6- [`intdiv`](https://php.net/intdiv)
7- [`preg_replace_callback_array`](https://php.net/preg_replace_callback_array)
8- [`error_clear_last`](https://php.net/error_clear_last)
9- `random_bytes` and `random_int` (from [paragonie/random_compat](https://github.com/paragonie/random_compat))
10- [`*Error` throwable classes](https://php.net/Error)
11- [`PHP_INT_MIN`](https://php.net/reserved.constants#constant.php-int-min)
12- `SessionUpdateTimestampHandlerInterface`
13
14More information can be found in the
15[main Polyfill README](https://github.com/symfony/polyfill/blob/master/README.md).
16
17Compatibility notes
18===================
19
20To write portable code between PHP5 and PHP7, some care must be taken:
21- `\*Error` exceptions must be caught before `\Exception`;
22- after calling `error_clear_last()`, the result of `$e = error_get_last()` must be
23 verified using `isset($e['message'][0])` instead of `null !== $e`.
24
25License
26=======
27
28This library is released under the [MIT license](LICENSE).