Mercurial > hg > isophonics-drupal-site
annotate vendor/symfony/polyfill-php70/README.md @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 1fec387a4317 |
children |
rev | line source |
---|---|
Chris@14 | 1 Symfony Polyfill / Php70 |
Chris@14 | 2 ======================== |
Chris@14 | 3 |
Chris@14 | 4 This component provides features unavailable in releases prior to PHP 7.0: |
Chris@14 | 5 |
Chris@14 | 6 - [`intdiv`](http://php.net/intdiv) |
Chris@14 | 7 - [`preg_replace_callback_array`](http://php.net/preg_replace_callback_array) |
Chris@14 | 8 - [`error_clear_last`](http://php.net/error_clear_last) |
Chris@14 | 9 - `random_bytes` and `random_int` (from [paragonie/random_compat](https://github.com/paragonie/random_compat)) |
Chris@14 | 10 - [`*Error` throwable classes](http://php.net/Error) |
Chris@14 | 11 - [`PHP_INT_MIN`](http://php.net/manual/en/reserved.constants.php#constant.php-int-min) |
Chris@14 | 12 - `SessionUpdateTimestampHandlerInterface` |
Chris@14 | 13 |
Chris@14 | 14 More information can be found in the |
Chris@14 | 15 [main Polyfill README](https://github.com/symfony/polyfill/blob/master/README.md). |
Chris@14 | 16 |
Chris@14 | 17 Compatibility notes |
Chris@14 | 18 =================== |
Chris@14 | 19 |
Chris@14 | 20 To write portable code between PHP5 and PHP7, some care must be taken: |
Chris@14 | 21 - `\*Error` exceptions must be caught before `\Exception`; |
Chris@14 | 22 - after calling `error_clear_last()`, the result of `$e = error_get_last()` must be |
Chris@14 | 23 verified using `isset($e['message'][0])` instead of `null !== $e`. |
Chris@14 | 24 |
Chris@14 | 25 License |
Chris@14 | 26 ======= |
Chris@14 | 27 |
Chris@14 | 28 This library is released under the [MIT license](LICENSE). |