Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
fbfa18e6
Commit
fbfa18e6
authored
Nov 19, 2013
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed requirement checker for intl PECL
fixes #1230
parent
edc2b1e1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
YiiRequirementChecker.php
framework/yii/requirements/YiiRequirementChecker.php
+3
-0
requirements.php
framework/yii/requirements/requirements.php
+1
-1
No files found.
framework/yii/requirements/YiiRequirementChecker.php
View file @
fbfa18e6
...
...
@@ -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
);
}
...
...
framework/yii/requirements/requirements.php
View file @
fbfa18e6
...
...
@@ -44,7 +44,7 @@ return array(
'condition'
=>
$this
->
checkPhpExtensionVersion
(
'intl'
,
'1.0.2'
,
'>='
),
'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
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.'
),
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment