You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.1 KiB

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