bootstrap.php 817 B

1234567891011121314151617181920212223242526
  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\Component\Intl\Globals\IntlGlobals;
  11. if (!function_exists('intl_is_failure')) {
  12. function intl_is_failure($error_code) { return IntlGlobals::isFailure($error_code); }
  13. }
  14. if (!function_exists('intl_get_error_code')) {
  15. function intl_get_error_code() { return IntlGlobals::getErrorCode(); }
  16. }
  17. if (!function_exists('intl_get_error_message')) {
  18. function intl_get_error_message() { return IntlGlobals::getErrorMessage(); }
  19. }
  20. if (!function_exists('intl_error_name')) {
  21. function intl_error_name($error_code) { return IntlGlobals::getErrorName($error_code); }
  22. }