Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/polyfill-php70/README.md @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
1 Symfony Polyfill / Php70 | |
2 ======================== | |
3 | |
4 This component provides features unavailable in releases prior to PHP 7.0: | |
5 | |
6 - [`intdiv`](http://php.net/intdiv) | |
7 - [`preg_replace_callback_array`](http://php.net/preg_replace_callback_array) | |
8 - [`error_clear_last`](http://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](http://php.net/Error) | |
11 - [`PHP_INT_MIN`](http://php.net/manual/en/reserved.constants.php#constant.php-int-min) | |
12 - `SessionUpdateTimestampHandlerInterface` | |
13 | |
14 More information can be found in the | |
15 [main Polyfill README](https://github.com/symfony/polyfill/blob/master/README.md). | |
16 | |
17 Compatibility notes | |
18 =================== | |
19 | |
20 To 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 | |
25 License | |
26 ======= | |
27 | |
28 This library is released under the [MIT license](LICENSE). |