bootstrap.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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\Php82 as p;
  11. if (\PHP_VERSION_ID >= 80200) {
  12. return;
  13. }
  14. if (\extension_loaded('curl') && !defined('CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256') && curl_version()['version_number'] >= 0x075000) {
  15. define('CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256', 10311);
  16. }
  17. if (extension_loaded('odbc')) {
  18. if (!function_exists('odbc_connection_string_is_quoted')) {
  19. function odbc_connection_string_is_quoted(string $str): bool { return p\Php82::odbc_connection_string_is_quoted($str); }
  20. }
  21. if (!function_exists('odbc_connection_string_should_quote')) {
  22. function odbc_connection_string_should_quote(string $str): bool { return p\Php82::odbc_connection_string_should_quote($str); }
  23. }
  24. if (!function_exists('odbc_connection_string_quote')) {
  25. function odbc_connection_string_quote(string $str): string { return p\Php82::odbc_connection_string_quote($str); }
  26. }
  27. }
  28. if (!function_exists('ini_parse_quantity')) {
  29. function ini_parse_quantity(string $shorthand): int { return p\Php82::ini_parse_quantity($shorthand); }
  30. }