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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
78d37e4d
Commit
78d37e4d
authored
Oct 21, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #5657: `yii\caching\ApcCache::mset()` and `madd()` may cause warning in some APC setup
parent
2c6d388f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
ApcCache.php
framework/caching/ApcCache.php
+5
-6
No files found.
framework/CHANGELOG.md
View file @
78d37e4d
...
@@ -8,6 +8,7 @@ Yii Framework 2 Change Log
...
@@ -8,6 +8,7 @@ Yii Framework 2 Change Log
-
Bug #5402: Debugger was not loading when there were closures in asset classes (samdark)
-
Bug #5402: Debugger was not loading when there were closures in asset classes (samdark)
-
Bug #5584:
`yii\rbac\DbRbacManager`
should not delete items when deleting a rule on a database not supporting cascade update (mdmunir)
-
Bug #5584:
`yii\rbac\DbRbacManager`
should not delete items when deleting a rule on a database not supporting cascade update (mdmunir)
-
Bug #5601: Simple conditions in Query::where() and ActiveQuery::where() did not allow
`yii\db\Expression`
to be used as the value (cebe, stevekr)
-
Bug #5601: Simple conditions in Query::where() and ActiveQuery::where() did not allow
`yii\db\Expression`
to be used as the value (cebe, stevekr)
-
Bug #5657:
`yii\caching\ApcCache::mset()`
and
`madd()`
may cause warning in some APC setup (LAV45)
-
Bug #5665: The
`currentPage`
meta data in the RESTful result should be 1-based, similar to that in HTTP headers (qiangxue)
-
Bug #5665: The
`currentPage`
meta data in the RESTful result should be 1-based, similar to that in HTTP headers (qiangxue)
-
Bug: Gii console command help information does not contain global options (qiangxue)
-
Bug: Gii console command help information does not contain global options (qiangxue)
-
Enh #5223: Query builder now supports selecting sub-queries as columns (qiangxue)
-
Enh #5223: Query builder now supports selecting sub-queries as columns (qiangxue)
...
...
framework/caching/ApcCache.php
View file @
78d37e4d
...
@@ -56,10 +56,7 @@ class ApcCache extends Cache
...
@@ -56,10 +56,7 @@ class ApcCache extends Cache
protected
function
getValues
(
$keys
)
protected
function
getValues
(
$keys
)
{
{
$values
=
apc_fetch
(
$keys
);
$values
=
apc_fetch
(
$keys
);
if
(
$values
===
false
)
{
return
is_array
(
$values
)
?
$values
:
[];
$values
=
[];
}
return
$values
;
}
}
/**
/**
...
@@ -84,7 +81,8 @@ class ApcCache extends Cache
...
@@ -84,7 +81,8 @@ class ApcCache extends Cache
*/
*/
protected
function
setValues
(
$data
,
$duration
)
protected
function
setValues
(
$data
,
$duration
)
{
{
return
array_keys
(
apc_store
(
$data
,
null
,
$duration
));
$result
=
apc_store
(
$data
,
null
,
$duration
);
return
is_array
(
$result
)
?
array_keys
(
$result
)
:
[];
}
}
/**
/**
...
@@ -108,7 +106,8 @@ class ApcCache extends Cache
...
@@ -108,7 +106,8 @@ class ApcCache extends Cache
*/
*/
protected
function
addValues
(
$data
,
$duration
)
protected
function
addValues
(
$data
,
$duration
)
{
{
return
array_keys
(
apc_add
(
$data
,
null
,
$duration
));
$result
=
apc_add
(
$data
,
null
,
$duration
);
return
is_array
(
$result
)
?
array_keys
(
$result
)
:
[];
}
}
/**
/**
...
...
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