forked from symfony/polyfill-php81
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbootstrap.php
More file actions
36 lines (30 loc) · 839 Bytes
/
bootstrap.php
File metadata and controls
36 lines (30 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?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 Zf1s\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')) {
/**
* @return bool
*/
function array_is_list(array $array) { return p\Php81::array_is_list($array); }
}
if (!function_exists('enum_exists')) {
/**
* @param string $enum
* @param bool $autoload
* @return bool
*/
function enum_exists($enum, $autoload = true) { return $autoload && class_exists($enum) && false; }
}