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
2643daa5
Commit
2643daa5
authored
Jun 17, 2013
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve application speed by using classMap for autoloader
parent
3e18479d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
YiiBase.php
framework/yii/YiiBase.php
+0
-0
Application.php
framework/yii/base/Application.php
+2
-2
UrlManager.php
framework/yii/web/UrlManager.php
+1
-1
No files found.
framework/yii/YiiBase.php
View file @
2643daa5
This diff is collapsed.
Click to expand it.
framework/yii/base/Application.php
View file @
2643daa5
...
@@ -126,8 +126,8 @@ abstract class Application extends Module
...
@@ -126,8 +126,8 @@ abstract class Application extends Module
set_exception_handler
(
array
(
$this
,
'handleException'
));
set_exception_handler
(
array
(
$this
,
'handleException'
));
set_error_handler
(
array
(
$this
,
'handleError'
),
error_reporting
());
set_error_handler
(
array
(
$this
,
'handleError'
),
error_reporting
());
// Allocating twice more than required to display memory exhausted error
// Allocating twice more than required to display memory exhausted error
// in case of trying to allocate last 1 byte while all memory is taken.
// in case of trying to allocate last 1 byte while all memory is taken.
1024 * 256 bytes
$this
->
_memoryReserve
=
str_repeat
(
'x
'
,
1024
*
256
);
$this
->
_memoryReserve
=
str_repeat
(
'x
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
,
1024
);
register_shutdown_function
(
array
(
$this
,
'handleFatalError'
));
register_shutdown_function
(
array
(
$this
,
'handleFatalError'
));
}
}
}
}
...
...
framework/yii/web/UrlManager.php
View file @
2643daa5
...
@@ -167,7 +167,7 @@ class UrlManager extends Component
...
@@ -167,7 +167,7 @@ class UrlManager extends Component
public
function
parseRequest
(
$request
)
public
function
parseRequest
(
$request
)
{
{
if
(
$this
->
enablePrettyUrl
)
{
if
(
$this
->
enablePrettyUrl
)
{
$pathInfo
=
$request
->
pathInfo
;
$pathInfo
=
$request
->
getPathInfo
()
;
/** @var $rule UrlRule */
/** @var $rule UrlRule */
foreach
(
$this
->
rules
as
$rule
)
{
foreach
(
$this
->
rules
as
$rule
)
{
if
((
$result
=
$rule
->
parseRequest
(
$this
,
$request
))
!==
false
)
{
if
((
$result
=
$rule
->
parseRequest
(
$this
,
$request
))
!==
false
)
{
...
...
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