Resources
3 years ago
LICENSE
3 years ago
Php81.php
3 years ago
bootstrap.php
3 years ago
composer.json
3 years ago
bootstrap.php
29 lines
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the Symfony package. |
| 5 | * |
| 6 | * (c) Fabien Potencier <fabien@symfony.com> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | |
| 12 | use Symfony\Polyfill\Php81 as p; |
| 13 | |
| 14 | if (\PHP_VERSION_ID >= 80100) { |
| 15 | return; |
| 16 | } |
| 17 | |
| 18 | if (defined('MYSQLI_REFRESH_SLAVE') && !defined('MYSQLI_REFRESH_REPLICA')) { |
| 19 | define('MYSQLI_REFRESH_REPLICA', 64); |
| 20 | } |
| 21 | |
| 22 | if (!function_exists('array_is_list')) { |
| 23 | function array_is_list(array $array): bool { return p\Php81::array_is_list($array); } |
| 24 | } |
| 25 | |
| 26 | if (!function_exists('enum_exists')) { |
| 27 | function enum_exists(string $enum, bool $autoload = true): bool { return $autoload && class_exists($enum) && false; } |
| 28 | } |
| 29 |