aboutsummaryrefslogtreecommitdiff
path: root/vendor/symfony/polyfill-php70/README.md
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2023-05-22 15:37:34 -0500
committerChristian Cleberg <hello@cleberg.net>2023-05-22 15:37:34 -0500
commit17ff8aec3a0d2e0a520849c42c40a154a0831495 (patch)
tree8860d29e9d0f9acd1535c7827045864fc31f8d01 /vendor/symfony/polyfill-php70/README.md
downloadmichelangelo-17ff8aec3a0d2e0a520849c42c40a154a0831495.tar.gz
michelangelo-17ff8aec3a0d2e0a520849c42c40a154a0831495.tar.bz2
michelangelo-17ff8aec3a0d2e0a520849c42c40a154a0831495.zip
initial commit
Diffstat (limited to 'vendor/symfony/polyfill-php70/README.md')
-rw-r--r--vendor/symfony/polyfill-php70/README.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/vendor/symfony/polyfill-php70/README.md b/vendor/symfony/polyfill-php70/README.md
new file mode 100644
index 0000000..abd5488
--- /dev/null
+++ b/vendor/symfony/polyfill-php70/README.md
@@ -0,0 +1,28 @@
+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).