bootstrap.php 738 B

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