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
d182ce1d
Commit
d182ce1d
authored
Jun 18, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed reservedMemorySize to memoryReserveSize.
parent
e7e9723f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Application.php
framework/yii/base/Application.php
+3
-3
No files found.
framework/yii/base/Application.php
View file @
d182ce1d
...
...
@@ -60,7 +60,7 @@ abstract class Application extends Module
* the help of this reserved memory. If you set this value to be 0, no memory will be reserved.
* Defaults to 256KB.
*/
public
$
reservedMemory
Size
=
262144
;
public
$
memoryReserve
Size
=
262144
;
/**
* @var string Used to reserve memory for fatal error handler.
...
...
@@ -132,8 +132,8 @@ abstract class Application extends Module
ini_set
(
'display_errors'
,
0
);
set_exception_handler
(
array
(
$this
,
'handleException'
));
set_error_handler
(
array
(
$this
,
'handleError'
),
error_reporting
());
if
(
$this
->
reservedMemory
Size
>
0
)
{
$this
->
_memoryReserve
=
str_repeat
(
'x'
,
$this
->
reservedMemory
Size
);
if
(
$this
->
memoryReserve
Size
>
0
)
{
$this
->
_memoryReserve
=
str_repeat
(
'x'
,
$this
->
memoryReserve
Size
);
}
register_shutdown_function
(
array
(
$this
,
'handleFatalError'
));
}
...
...
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