diff --git a/framework/yii/requirements/YiiRequirementChecker.php b/framework/yii/requirements/YiiRequirementChecker.php
index c8ad45d..586cdce 100644
--- a/framework/yii/requirements/YiiRequirementChecker.php
+++ b/framework/yii/requirements/YiiRequirementChecker.php
@@ -178,6 +178,9 @@ class YiiRequirementChecker
if (empty($extensionVersion)) {
return false;
}
+ if (strncasecmp($extensionVersion, 'PECL-', 5) == 0) {
+ $extensionVersion = substr($extensionVersion, 5);
+ }
return version_compare($extensionVersion, $version, $compare);
}
diff --git a/framework/yii/requirements/requirements.php b/framework/yii/requirements/requirements.php
index 34b556e..916d6aa 100644
--- a/framework/yii/requirements/requirements.php
+++ b/framework/yii/requirements/requirements.php
@@ -44,7 +44,7 @@ return array(
'condition' => $this->checkPhpExtensionVersion('intl', '1.0.2', '>='),
'by' => 'Internationalization support',
'memo' => 'PHP Intl extension 1.0.2 or higher is required when you want to use advanced parameters formatting
- in \Yii::t()
, IDN-feature of
+ in Yii::t()
, IDN-feature of
EmailValidator
or UrlValidator
or the yii\i18n\Formatter
class.'
),
);