From dde1d3462f8914a0200de41294d8ec6561185eae Mon Sep 17 00:00:00 2001 From: Bernhard Schussek Date: Fri, 15 Mar 2013 13:39:37 +0100 Subject: [PATCH] [Intl] Changed Intl::getIcuVersion() to return the stub version if the intl extension is not loaded --- src/Symfony/Component/Intl/Intl.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/Intl/Intl.php b/src/Symfony/Component/Intl/Intl.php index df2d57976d..be0533d1fa 100644 --- a/src/Symfony/Component/Intl/Intl.php +++ b/src/Symfony/Component/Intl/Intl.php @@ -245,7 +245,9 @@ class Intl public static function getIcuVersion() { if (false === self::$icuVersion) { - if (defined('INTL_ICU_VERSION')) { + if (!self::isExtensionLoaded()) { + self::$icuVersion = self::getIcuStubVersion(); + } elseif (defined('INTL_ICU_VERSION')) { self::$icuVersion = INTL_ICU_VERSION; } else { try {