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
c808932c
Commit
c808932c
authored
Dec 17, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #4820: Fixed reading incomplete debug index data in case of high request concurrency
parent
2aa39499
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
CHANGELOG.md
extensions/debug/CHANGELOG.md
+1
-1
DefaultController.php
extensions/debug/controllers/DefaultController.php
+11
-1
No files found.
extensions/debug/CHANGELOG.md
View file @
c808932c
...
...
@@ -4,7 +4,7 @@ Yii Framework 2 debug extension Change Log
2.
0.2 under development
-----------------------
-
no changes in this release.
-
Bug #4820: Fixed reading incomplete debug index data in case of high request concurrency (martingeorg, samdark)
2.0.1 December 07, 2014
...
...
extensions/debug/controllers/DefaultController.php
View file @
c808932c
...
...
@@ -118,7 +118,17 @@ class DefaultController extends Controller
clearstatcache
();
}
$indexFile
=
$this
->
module
->
dataPath
.
'/index.data'
;
if
(
is_file
(
$indexFile
)
&&
is_readable
(
$indexFile
)
&&
(
$content
=
file_get_contents
(
$indexFile
))
!==
false
)
{
$content
=
''
;
$fp
=
@
fopen
(
$indexFile
,
'r'
);
if
(
$fp
!==
false
)
{
@
flock
(
$fp
,
LOCK_SH
);
$content
=
fread
(
$fp
,
filesize
(
$indexFile
));
@
flock
(
$fp
,
LOCK_UN
);
fclose
(
$fp
);
}
if
(
$content
!==
''
)
{
$this
->
_manifest
=
array_reverse
(
unserialize
(
$content
),
true
);
}
else
{
$this
->
_manifest
=
[];
...
...
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