[Intl] Changed Intl::getIcuVersion() to return the stub version if the intl extension is not loaded
This commit is contained in:
parent
99f6f8ab17
commit
dde1d3462f
|
@ -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 {
|
||||
|
|
Reference in New Issue