Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/symfony/polyfill-php70
This component provides features unavailable in releases prior to PHP 7.0.
https://github.com/symfony/polyfill-php70
component php polyfill symfony symfony-component
Last synced: 4 days ago
JSON representation
This component provides features unavailable in releases prior to PHP 7.0.
- Host: GitHub
- URL: https://github.com/symfony/polyfill-php70
- Owner: symfony
- License: mit
- Created: 2015-10-22T12:57:06.000Z (about 9 years ago)
- Default Branch: 1.x
- Last Pushed: 2023-08-02T10:26:56.000Z (over 1 year ago)
- Last Synced: 2024-12-07T01:58:52.620Z (14 days ago)
- Topics: component, php, polyfill, symfony, symfony-component
- Homepage: https://symfony.com/polyfill-php70
- Size: 26.4 KB
- Stars: 3,219
- Watchers: 6
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - symfony/polyfill-php70 - This component provides features unavailable in releases prior to PHP 7.0. (miscellaneous)
README
Symfony Polyfill / Php70
========================This component provides features unavailable in releases prior to PHP 7.0:
- [`intdiv`](https://php.net/intdiv)
- [`preg_replace_callback_array`](https://php.net/preg_replace_callback_array)
- [`error_clear_last`](https://php.net/error_clear_last)
- `random_bytes` and `random_int` (from [paragonie/random_compat](https://github.com/paragonie/random_compat))
- [`*Error` throwable classes](https://php.net/Error)
- [`PHP_INT_MIN`](https://php.net/reserved.constants#constant.php-int-min)
- `SessionUpdateTimestampHandlerInterface`More information can be found in the
[main Polyfill README](https://github.com/symfony/polyfill/blob/master/README.md).Compatibility notes
===================To write portable code between PHP5 and PHP7, some care must be taken:
- `\*Error` exceptions must be caught before `\Exception`;
- after calling `error_clear_last()`, the result of `$e = error_get_last()` must be
verified using `isset($e['message'][0])` instead of `null !== $e`.License
=======This library is released under the [MIT license](LICENSE).