BlueGit

projects-timfalken-com microchess

Files

microchess / web / lib / push / vendor / symfony / polyfill-php82 / bootstrap.php

bootstrap.php

bootstrap.php 1.3 KiB Download Raw
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
12use Symfony\Polyfill\Php82 as p;
13
14if (\PHP_VERSION_ID >= 80200) {
15 return;
16}
17
18if (\extension_loaded('curl') && !defined('CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256') && curl_version()['version_number'] >= 0x075000) {
19 define('CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256', 10311);
20}
21
22if (extension_loaded('odbc')) {
23 if (!function_exists('odbc_connection_string_is_quoted')) {
24 function odbc_connection_string_is_quoted(string $str): bool { return p\Php82::odbc_connection_string_is_quoted($str); }
25 }
26
27 if (!function_exists('odbc_connection_string_should_quote')) {
28 function odbc_connection_string_should_quote(string $str): bool { return p\Php82::odbc_connection_string_should_quote($str); }
29 }
30
31 if (!function_exists('odbc_connection_string_quote')) {
32 function odbc_connection_string_quote(string $str): string { return p\Php82::odbc_connection_string_quote($str); }
33 }
34}
35
36if (!function_exists('ini_parse_quantity')) {
37 function ini_parse_quantity(string $shorthand): int { return p\Php82::ini_parse_quantity($shorthand); }
38}