Resources
5 years ago
LICENSE
5 years ago
Php70.php
5 years ago
README.md
5 years ago
bootstrap.php
5 years ago
composer.json
5 years ago
README.md
29 lines
| 1 | Symfony Polyfill / Php70 |
| 2 | ======================== |
| 3 | |
| 4 | This component provides features unavailable in releases prior to PHP 7.0: |
| 5 | |
| 6 | - [](https://php.net/intdiv`intdiv`](https://php.net/intdiv](https://php.net/intdiv) |
| 7 | - [](https://php.net/preg_replace_callback_array`preg_replace_callback_array`](https://php.net/preg_replace_callback_array](https://php.net/preg_replace_callback_array) |
| 8 | - [](https://php.net/error_clear_last`error_clear_last`](https://php.net/error_clear_last](https://php.net/error_clear_last) |
| 9 | - `random_bytes` and `random_int` (from [](https://github.com/paragonie/random_compatparagonie/random_compat](https://github.com/paragonie/random_compat](https://github.com/paragonie/random_compat)) |
| 10 | - [](https://php.net/Error`*Error` throwable classes](https://php.net/Error](https://php.net/Error) |
| 11 | - [](https://php.net/reserved.constants#constant.php-int-min`PHP_INT_MIN`](https://php.net/reserved.constants#constant.php-int-min](https://php.net/reserved.constants#constant.php-int-min) |
| 12 | - `SessionUpdateTimestampHandlerInterface` |
| 13 | |
| 14 | More information can be found in the |
| 15 | [](https://github.com/symfony/polyfill/blob/master/README.mdmain Polyfill README](https://github.com/symfony/polyfill/blob/master/README.md](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 [](LICENSEMIT license](LICENSE](LICENSE). |
| 29 |