diff options
author | Mario Vavti <mario@mariovavti.com> | 2021-10-09 20:08:23 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2021-10-09 20:08:23 +0200 |
commit | 094536e6339eaba87cc0b372418a50b865fe0a97 (patch) | |
tree | 71f8e1f1d421322dbe52ca631e6bd32bd05e8b43 /vendor/symfony/polyfill-php81/bootstrap.php | |
parent | 4f2a439873d105b91a5dbbd4dc72d2e2183349a8 (diff) | |
parent | 63bdab2b5fd456979587e3c065c274c6475c17b1 (diff) | |
download | volse-hubzilla-094536e6339eaba87cc0b372418a50b865fe0a97.tar.gz volse-hubzilla-094536e6339eaba87cc0b372418a50b865fe0a97.tar.bz2 volse-hubzilla-094536e6339eaba87cc0b372418a50b865fe0a97.zip |
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'vendor/symfony/polyfill-php81/bootstrap.php')
-rw-r--r-- | vendor/symfony/polyfill-php81/bootstrap.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/vendor/symfony/polyfill-php81/bootstrap.php b/vendor/symfony/polyfill-php81/bootstrap.php new file mode 100644 index 000000000..9f872e02f --- /dev/null +++ b/vendor/symfony/polyfill-php81/bootstrap.php @@ -0,0 +1,28 @@ +<?php + +/* + * This file is part of the Symfony package. + * + * (c) Fabien Potencier <fabien@symfony.com> + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +use Symfony\Polyfill\Php81 as p; + +if (\PHP_VERSION_ID >= 80100) { + return; +} + +if (defined('MYSQLI_REFRESH_SLAVE') && !defined('MYSQLI_REFRESH_REPLICA')) { + define('MYSQLI_REFRESH_REPLICA', 64); +} + +if (!function_exists('array_is_list')) { + function array_is_list(array $array): bool { return p\Php81::array_is_list($array); } +} + +if (!function_exists('enum_exists')) { + function enum_exists(string $enum, bool $autoload = true): bool { return $autoload && class_exists($enum) && false; } +} |