bootstrap80.php 826 B

12345678910111213141516171819202122232425
  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\Intl\Icu as p;
  11. if (!function_exists('intl_is_failure')) {
  12. function intl_is_failure(?int $errorCode): bool { return p\Icu::isFailure((int) $errorCode); }
  13. }
  14. if (!function_exists('intl_get_error_code')) {
  15. function intl_get_error_code(): int { return p\Icu::getErrorCode(); }
  16. }
  17. if (!function_exists('intl_get_error_message')) {
  18. function intl_get_error_message(): string { return p\Icu::getErrorMessage(); }
  19. }
  20. if (!function_exists('intl_error_name')) {
  21. function intl_error_name(?int $errorCode): string { return p\Icu::getErrorName((int) $errorCode); }
  22. }