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