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