| 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\Php82 as p; |
| 13 | |
| 14 | if (\PHP_VERSION_ID >= 80200) { |
| 15 | return; |
| 16 | } |
| 17 | |
| 18 | if (\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 | |
| 22 | if (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 | |
| 36 | if (!function_exists('ini_parse_quantity')) { |
| 37 | function ini_parse_quantity(string $shorthand): int { return p\Php82::ini_parse_quantity($shorthand); } |
| 38 | } |
projects-timfalken-com microchess