mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-20 00:20:44 +08:00
@@ -178,6 +178,9 @@ class YiiRequirementChecker
|
|||||||
if (empty($extensionVersion)) {
|
if (empty($extensionVersion)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (strncasecmp($extensionVersion, 'PECL-', 5) == 0) {
|
||||||
|
$extensionVersion = substr($extensionVersion, 5);
|
||||||
|
}
|
||||||
return version_compare($extensionVersion, $version, $compare);
|
return version_compare($extensionVersion, $version, $compare);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ return array(
|
|||||||
'condition' => $this->checkPhpExtensionVersion('intl', '1.0.2', '>='),
|
'condition' => $this->checkPhpExtensionVersion('intl', '1.0.2', '>='),
|
||||||
'by' => '<a href="http://www.php.net/manual/en/book.intl.php">Internationalization</a> support',
|
'by' => '<a href="http://www.php.net/manual/en/book.intl.php">Internationalization</a> support',
|
||||||
'memo' => 'PHP Intl extension 1.0.2 or higher is required when you want to use advanced parameters formatting
|
'memo' => 'PHP Intl extension 1.0.2 or higher is required when you want to use advanced parameters formatting
|
||||||
in <code>\Yii::t()</code>, <abbr title="Internationalized domain names">IDN</abbr>-feature of
|
in <code>Yii::t()</code>, <abbr title="Internationalized domain names">IDN</abbr>-feature of
|
||||||
<code>EmailValidator</code> or <code>UrlValidator</code> or the <code>yii\i18n\Formatter</code> class.'
|
<code>EmailValidator</code> or <code>UrlValidator</code> or the <code>yii\i18n\Formatter</code> class.'
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user