From 4f5b44bd3bd490309eb2ba7b44df4769816ba729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sat, 3 Aug 2013 19:26:54 +0200 Subject: twig implementation --- .../Component/Intl/Resources/bin/autoload.php | 18 ++ .../Component/Intl/Resources/bin/common.php | 69 +++++++ .../Intl/Resources/bin/copy-stubs-to-component.php | 63 ++++++ .../Component/Intl/Resources/bin/create-stubs.php | 112 +++++++++++ .../Component/Intl/Resources/bin/icu-version.php | 18 ++ .../Symfony/Component/Intl/Resources/bin/icu.ini | 9 + .../Component/Intl/Resources/bin/test-compat.php | 56 ++++++ .../Intl/Resources/bin/update-icu-component.php | 212 +++++++++++++++++++++ .../Intl/Resources/bin/util/test-compat-helper.php | 23 +++ .../Component/Intl/Resources/stubs/Collator.php | 21 ++ .../Intl/Resources/stubs/IntlDateFormatter.php | 21 ++ .../Component/Intl/Resources/stubs/Locale.php | 21 ++ .../Intl/Resources/stubs/NumberFormatter.php | 21 ++ .../Component/Intl/Resources/stubs/functions.php | 80 ++++++++ 14 files changed, 744 insertions(+) create mode 100644 vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/autoload.php create mode 100644 vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/common.php create mode 100644 vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/copy-stubs-to-component.php create mode 100644 vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/create-stubs.php create mode 100644 vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/icu-version.php create mode 100644 vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/icu.ini create mode 100644 vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/test-compat.php create mode 100644 vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/update-icu-component.php create mode 100644 vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/util/test-compat-helper.php create mode 100644 vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/Collator.php create mode 100644 vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/IntlDateFormatter.php create mode 100644 vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/Locale.php create mode 100644 vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/NumberFormatter.php create mode 100644 vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/functions.php (limited to 'vendor/symfony/intl/Symfony/Component/Intl/Resources') diff --git a/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/autoload.php b/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/autoload.php new file mode 100644 index 00000000..e4500115 --- /dev/null +++ b/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/autoload.php @@ -0,0 +1,18 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +$autoload = __DIR__ . '/../../vendor/autoload.php'; + +if (!file_exists($autoload)) { + bailout('You should run "composer install --dev" in the component before running this script.'); +} + +require_once realpath($autoload); diff --git a/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/common.php b/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/common.php new file mode 100644 index 00000000..4fadbe82 --- /dev/null +++ b/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/common.php @@ -0,0 +1,69 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +define('LINE_WIDTH', 75); + +define('LINE', str_repeat('-', LINE_WIDTH) . "\n"); + +function bailout($message) +{ + echo wordwrap($message, LINE_WIDTH) . " Aborting.\n"; + + exit(1); +} + +function strip_minor_versions($version) +{ + preg_match('/^(?P[0-9]\.[0-9]|[0-9]{2,})/', $version, $matches); + + return $matches['version']; +} + +function centered($text) +{ + $padding = (int) ((LINE_WIDTH - strlen($text))/2); + + return str_repeat(' ', $padding) . $text; +} + +function cd($dir) +{ + if (false === chdir($dir)) { + bailout("Could not switch to directory $dir."); + } +} + +function run($command) +{ + exec($command, $output, $status); + + if (0 !== $status) { + $output = implode("\n", $output); + echo "Error while running:\n " . getcwd() . '$ ' . $command . "\nOutput:\n" . LINE . "$output\n" . LINE; + + bailout("\"$command\" failed."); + } +} + +function get_icu_version_from_genrb($genrb) +{ + exec($genrb . ' --version 2>&1', $output, $status); + + if (0 !== $status) { + bailout($genrb . ' failed.'); + } + + if (!preg_match('/ICU version ([\d\.]+)/', implode('', $output), $matches)) { + return null; + } + + return $matches[1]; +} diff --git a/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/copy-stubs-to-component.php b/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/copy-stubs-to-component.php new file mode 100644 index 00000000..e8576832 --- /dev/null +++ b/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/copy-stubs-to-component.php @@ -0,0 +1,63 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +use Symfony\Component\Filesystem\Filesystem; +use Symfony\Component\Icu\IcuData; +use Symfony\Component\Intl\Intl; + +require_once __DIR__ . '/common.php'; +require_once __DIR__ . '/autoload.php'; + +if (1 !== $GLOBALS['argc']) { + bailout(<<exists($sourceDir)) { + bailout("The directory $sourceDir does not exist. Please run create-stubs.php first."); +} + +$filesystem->remove($targetDir); + +echo "Copying files from $sourceDir to $targetDir...\n"; + +$filesystem->mirror($sourceDir, $targetDir); + +echo "Done.\n"; diff --git a/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/create-stubs.php b/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/create-stubs.php new file mode 100644 index 00000000..d330d6b5 --- /dev/null +++ b/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/create-stubs.php @@ -0,0 +1,112 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +use Symfony\Component\Filesystem\Filesystem; +use Symfony\Component\Icu\IcuData; +use Symfony\Component\Intl\Intl; +use Symfony\Component\Intl\ResourceBundle\Transformer\BundleTransformer; +use Symfony\Component\Intl\ResourceBundle\Transformer\Rule\CurrencyBundleTransformationRule; +use Symfony\Component\Intl\ResourceBundle\Transformer\Rule\LanguageBundleTransformationRule; +use Symfony\Component\Intl\ResourceBundle\Transformer\Rule\LocaleBundleTransformationRule; +use Symfony\Component\Intl\ResourceBundle\Transformer\Rule\RegionBundleTransformationRule; +use Symfony\Component\Intl\ResourceBundle\Transformer\StubbingContext; + +require_once __DIR__ . '/common.php'; +require_once __DIR__ . '/autoload.php'; + +if (1 !== $GLOBALS['argc']) { + bailout(<<addRule(new LanguageBundleTransformationRule()); +$transformer->addRule(new RegionBundleTransformationRule()); +$transformer->addRule(new CurrencyBundleTransformationRule()); +$transformer->addRule(new LocaleBundleTransformationRule()); + +echo "Starting stub creation...\n"; + +$transformer->createStubs($context); + +echo "Wrote stubs to $targetDir.\n"; + +$versionFile = $context->getStubDir() . '/version.txt'; + +file_put_contents($versionFile, "$icuVersionInIcuComponent\n"); + +echo "Wrote $versionFile.\n"; + +echo "Done.\n"; + +echo wordwrap("Please change the Icu component to branch $stubBranch now and run:\n", LINE_WIDTH); + +echo "\n php copy-stubs-to-component.php\n"; diff --git a/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/icu-version.php b/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/icu-version.php new file mode 100644 index 00000000..d54916f5 --- /dev/null +++ b/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/icu-version.php @@ -0,0 +1,18 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +use Symfony\Component\Intl\Intl; + +require_once __DIR__ . '/common.php'; +require_once __DIR__ . '/autoload.php'; + +echo "ICU version: "; +echo Intl::getIcuVersion() . "\n"; diff --git a/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/icu.ini b/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/icu.ini new file mode 100644 index 00000000..902e3361 --- /dev/null +++ b/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/icu.ini @@ -0,0 +1,9 @@ +; ICU data source URLs +; We use always the latest release of a major version. +4.0 = http://source.icu-project.org/repos/icu/icu/tags/release-4-0-1/source +4.2 = http://source.icu-project.org/repos/icu/icu/tags/release-4-2-1/source +4.4 = http://source.icu-project.org/repos/icu/icu/tags/release-4-4-2/source +4.6 = http://source.icu-project.org/repos/icu/icu/tags/release-4-6-1/source +4.8 = http://source.icu-project.org/repos/icu/icu/tags/release-4-8-1-1/source +49 = http://source.icu-project.org/repos/icu/icu/tags/release-49-1-2/source +50 = http://source.icu-project.org/repos/icu/icu/tags/release-50-1-2/source diff --git a/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/test-compat.php b/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/test-compat.php new file mode 100644 index 00000000..c1bf40f7 --- /dev/null +++ b/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/test-compat.php @@ -0,0 +1,56 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +use Symfony\Component\Intl\Intl; + +require_once __DIR__ . '/common.php'; +require_once __DIR__ . '/autoload.php'; + +if (1 !== $GLOBALS['argc']) { + bailout(<<&1'); + + exec('php ' . __DIR__ . '/util/test-compat-helper.php > /dev/null 2> /dev/null', $output, $status); + + echo "$branch: " . (0 === $status ? "YES" : "NO") . "\n"; +} + +echo "Done.\n"; diff --git a/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/update-icu-component.php b/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/update-icu-component.php new file mode 100644 index 00000000..2b94fe41 --- /dev/null +++ b/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/update-icu-component.php @@ -0,0 +1,212 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +use Symfony\Component\Icu\IcuData; +use Symfony\Component\Intl\Intl; +use Symfony\Component\Intl\ResourceBundle\Compiler\BundleCompiler; +use Symfony\Component\Intl\ResourceBundle\Transformer\BundleTransformer; +use Symfony\Component\Intl\ResourceBundle\Transformer\CompilationContext; +use Symfony\Component\Intl\ResourceBundle\Transformer\Rule\CurrencyBundleTransformationRule; +use Symfony\Component\Intl\ResourceBundle\Transformer\Rule\LanguageBundleTransformationRule; +use Symfony\Component\Intl\ResourceBundle\Transformer\Rule\LocaleBundleTransformationRule; +use Symfony\Component\Intl\ResourceBundle\Transformer\Rule\RegionBundleTransformationRule; +use Symfony\Component\Intl\Util\SvnRepository; +use Symfony\Component\Filesystem\Filesystem; + +require_once __DIR__ . '/common.php'; +require_once __DIR__ . '/autoload.php'; + +if ($GLOBALS['argc'] > 3 || 2 === $GLOBALS['argc'] && '-h' === $GLOBALS['argv'][1]) { + bailout(<< + +Updates the ICU data for Symfony2 to the latest version of the ICU version +included in the intl extension. For example, if your intl extension includes +ICU 4.8, the script will download the latest data available for ICU 4.8. + +If you downloaded the SVN repository before, you can pass the path to the +repository source in the first optional argument. + +If you also built the repository before, you can pass the directory where that +build is stored in the second parameter. The build directory needs to contain +the subdirectories bin/ and lib/. + +For running this script, the intl extension must be loaded and all vendors +must have been installed through composer: + + composer install --dev + +MESSAGE + ); +} + +echo LINE; +echo centered("ICU Resource Bundle Compilation") . "\n"; +echo LINE; + +if (!Intl::isExtensionLoaded()) { + bailout('The intl extension for PHP is not installed.'); +} + +if (!class_exists('\Symfony\Component\Icu\IcuData')) { + bailout('You must run "composer update --dev" before running this script.'); +} + +$filesystem = new Filesystem(); + +$icuVersionInPhp = Intl::getIcuVersion(); + +echo "Found intl extension with ICU version $icuVersionInPhp.\n"; + +$shortIcuVersion = strip_minor_versions($icuVersionInPhp); +$urls = parse_ini_file(__DIR__ . '/icu.ini'); + +if (!isset($urls[$shortIcuVersion])) { + bailout('The version ' . $shortIcuVersion . ' is not available in the icu.ini file.'); +} + +echo "icu.ini parsed. Available versions:\n"; + +foreach ($urls as $urlVersion => $url) { + echo " $urlVersion\n"; +} + +if ($GLOBALS['argc'] >= 2) { + $sourceDir = $GLOBALS['argv'][1]; + $svn = new SvnRepository($sourceDir); + + echo "Using existing SVN repository at {$sourceDir}.\n"; +} else { + echo "Starting SVN checkout for version $shortIcuVersion. This may take a while...\n"; + + $sourceDir = sys_get_temp_dir() . '/icu-data/' . $shortIcuVersion . '/source'; + $svn = SvnRepository::download($urls[$shortIcuVersion], $sourceDir); + + echo "SVN checkout to {$sourceDir} complete.\n"; +} + +if ($GLOBALS['argc'] >= 3) { + $buildDir = $GLOBALS['argv'][2]; +} else { + // Always build genrb so that we can determine the ICU version of the + // download by running genrb --version + echo "Building genrb.\n"; + + cd($sourceDir); + + echo "Running configure...\n"; + + $buildDir = sys_get_temp_dir() . '/icu-data/' . $shortIcuVersion . '/build'; + + $filesystem->remove($buildDir); + $filesystem->mkdir($buildDir); + + run('./configure --prefix=' . $buildDir . ' 2>&1'); + + echo "Running make...\n"; + + // If the directory "lib" does not exist in the download, create it or we + // will run into problems when building libicuuc.so. + $filesystem->mkdir($sourceDir . '/lib'); + + // If the directory "bin" does not exist in the download, create it or we + // will run into problems when building genrb. + $filesystem->mkdir($sourceDir . '/bin'); + + echo "[1/5] libicudata.so..."; + + cd($sourceDir . '/stubdata'); + run('make 2>&1 && make install 2>&1'); + + echo " ok.\n"; + + echo "[2/5] libicuuc.so..."; + + cd($sourceDir . '/common'); + run('make 2>&1 && make install 2>&1'); + + echo " ok.\n"; + + echo "[3/5] libicui18n.so..."; + + cd($sourceDir . '/i18n'); + run('make 2>&1 && make install 2>&1'); + + echo " ok.\n"; + + echo "[4/5] libicutu.so..."; + + cd($sourceDir . '/tools/toolutil'); + run('make 2>&1 && make install 2>&1'); + + echo " ok.\n"; + + echo "[5/5] genrb..."; + + cd($sourceDir . '/tools/genrb'); + run('make 2>&1 && make install 2>&1'); + + echo " ok.\n"; +} + +$genrb = $buildDir . '/bin/genrb'; +$genrbEnv = 'LD_LIBRARY_PATH=' . $buildDir . '/lib '; + +echo "Using $genrb.\n"; + +$icuVersionInDownload = get_icu_version_from_genrb($genrbEnv . ' ' . $genrb); + +echo "Preparing resource bundle compilation (version $icuVersionInDownload)...\n"; + +$context = new CompilationContext( + $sourceDir . '/data', + IcuData::getResourceDirectory(), + $filesystem, + new BundleCompiler($genrb, $genrbEnv), + $icuVersionInDownload +); + +$transformer = new BundleTransformer(); +$transformer->addRule(new LanguageBundleTransformationRule()); +$transformer->addRule(new RegionBundleTransformationRule()); +$transformer->addRule(new CurrencyBundleTransformationRule()); +$transformer->addRule(new LocaleBundleTransformationRule()); + +echo "Starting resource bundle compilation. This may take a while...\n"; + +$transformer->compileBundles($context); + +echo "Resource bundle compilation complete.\n"; + +$svnInfo = <<getUrl()} +Revision: {$svn->getLastCommit()->getRevision()} +Author: {$svn->getLastCommit()->getAuthor()} +Date: {$svn->getLastCommit()->getDate()} + +SVN_INFO; + +$svnInfoFile = $context->getBinaryDir() . '/svn-info.txt'; + +file_put_contents($svnInfoFile, $svnInfo); + +echo "Wrote $svnInfoFile.\n"; + +$versionFile = $context->getBinaryDir() . '/version.txt'; + +file_put_contents($versionFile, "$icuVersionInDownload\n"); + +echo "Wrote $versionFile.\n"; + +echo "Done.\n"; diff --git a/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/util/test-compat-helper.php b/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/util/test-compat-helper.php new file mode 100644 index 00000000..2734895c --- /dev/null +++ b/vendor/symfony/intl/Symfony/Component/Intl/Resources/bin/util/test-compat-helper.php @@ -0,0 +1,23 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +use Symfony\Component\Icu\IcuData; +use Symfony\Component\Intl\ResourceBundle\Reader\BinaryBundleReader; + +require_once __DIR__ . '/../common.php'; +require_once __DIR__ . '/../autoload.php'; + +$reader = new BinaryBundleReader(); + +$reader->read(IcuData::getResourceDirectory() . '/curr', 'en'); +$reader->read(IcuData::getResourceDirectory() . '/lang', 'en'); +$reader->read(IcuData::getResourceDirectory() . '/locales', 'en'); +$reader->read(IcuData::getResourceDirectory() . '/region', 'en'); diff --git a/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/Collator.php b/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/Collator.php new file mode 100644 index 00000000..4c373d86 --- /dev/null +++ b/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/Collator.php @@ -0,0 +1,21 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +/** + * Stub implementation for the Collator class of the intl extension + * + * @author Bernhard Schussek + * + * @see \Symfony\Component\Intl\Collator\StubCollator + */ +class Collator extends \Symfony\Component\Intl\Collator\Collator +{ +} diff --git a/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/IntlDateFormatter.php b/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/IntlDateFormatter.php new file mode 100644 index 00000000..52a07e95 --- /dev/null +++ b/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/IntlDateFormatter.php @@ -0,0 +1,21 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +/** + * Stub implementation for the IntlDateFormatter class of the intl extension + * + * @author Bernhard Schussek + * + * @see \Symfony\Component\Intl\DateFormatter\IntlDateFormatter + */ +class IntlDateFormatter extends \Symfony\Component\Intl\DateFormatter\IntlDateFormatter +{ +} diff --git a/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/Locale.php b/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/Locale.php new file mode 100644 index 00000000..045db40c --- /dev/null +++ b/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/Locale.php @@ -0,0 +1,21 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +/** + * Stub implementation for the Locale class of the intl extension + * + * @author Bernhard Schussek + * + * @see \Symfony\Component\Intl\Locale\Locale + */ +class Locale extends \Symfony\Component\Intl\Locale\Locale +{ +} diff --git a/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/NumberFormatter.php b/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/NumberFormatter.php new file mode 100644 index 00000000..318efb49 --- /dev/null +++ b/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/NumberFormatter.php @@ -0,0 +1,21 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +/** + * Stub implementation for the NumberFormatter class of the intl extension + * + * @author Bernhard Schussek + * + * @see \Symfony\Component\Intl\NumberFormatter\NumberFormatter + */ +class NumberFormatter extends \Symfony\Component\Intl\NumberFormatter\NumberFormatter +{ +} diff --git a/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/functions.php b/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/functions.php new file mode 100644 index 00000000..7a2d4b67 --- /dev/null +++ b/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/functions.php @@ -0,0 +1,80 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +use Symfony\Component\Intl\Globals\IntlGlobals; + +if (!function_exists('intl_is_failure')) { + + /** + * Stub implementation for the {@link intl_is_failure()} function of the intl + * extension. + * + * @author Bernhard Schussek + * + * @param integer $errorCode The error code returned by intl_get_error_code(). + * + * @return Boolean Whether the error code indicates an error. + * + * @see \Symfony\Component\Intl\Globals\StubIntlGlobals::isFailure + */ + function intl_is_failure($errorCode) + { + return IntlGlobals::isFailure($errorCode); + } + + /** + * Stub implementation for the {@link intl_get_error_code()} function of the + * intl extension. + * + * @author Bernhard Schussek + * + * @return Boolean The error code of the last intl function call or + * IntlGlobals::U_ZERO_ERROR if no error occurred. + * + * @see \Symfony\Component\Intl\Globals\StubIntlGlobals::getErrorCode + */ + function intl_get_error_code() + { + return IntlGlobals::getErrorCode(); + } + + /** + * Stub implementation for the {@link intl_get_error_code()} function of the + * intl extension. + * + * @author Bernhard Schussek + * + * @return Boolean The error message of the last intl function call or + * "U_ZERO_ERROR" if no error occurred. + * + * @see \Symfony\Component\Intl\Globals\StubIntlGlobals::getErrorMessage + */ + function intl_get_error_message() + { + return IntlGlobals::getErrorMessage(); + } + + /** + * Stub implementation for the {@link intl_error_name()} function of the intl + * extension. + * + * @param integer $errorCode The error code. + * + * @return string The name of the error code constant. + * + * @see \Symfony\Component\Intl\Globals\StubIntlGlobals::getErrorName + */ + function intl_error_name($errorCode) + { + return IntlGlobals::getErrorName($errorCode); + } + +} -- cgit v1.2.3