[Intl] Changed Intl::getIcuVersion() to return the stub version if the intl extension is not loaded

This commit is contained in:
Bernhard Schussek 2013-03-15 13:39:37 +01:00
parent 99f6f8ab17
commit dde1d3462f
1 changed files with 3 additions and 1 deletions

View File

@ -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 {