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
a64429ac
Commit
a64429ac
authored
Mar 30, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed TODOs
parent
a4b6fb26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ErrorHandler.php
framework/base/ErrorHandler.php
+4
-4
No files found.
framework/base/ErrorHandler.php
View file @
a64429ac
...
...
@@ -52,7 +52,7 @@ abstract class ErrorHandler extends Component
{
ini_set
(
'display_errors'
,
false
);
set_exception_handler
([
$this
,
'handleException'
]);
set_error_handler
([
$this
,
'handleError'
]);
// TODO care for errorReporting set to deprecated or not
set_error_handler
([
$this
,
'handleError'
]);
if
(
$this
->
memoryReserveSize
>
0
)
{
$this
->
_memoryReserve
=
str_repeat
(
'x'
,
$this
->
memoryReserveSize
);
}
...
...
@@ -120,10 +120,10 @@ abstract class ErrorHandler extends Component
*/
public
function
handleError
(
$code
,
$message
,
$file
,
$line
)
{
if
(
error_reporting
()
&
$code
)
{
// TODO care for errorReporting set to deprecated or not
if
(
error_reporting
()
&
$code
)
{
// load ErrorException manually here because autoloading them will not work
// when error occurs while autoloading a class
if
(
!
class_exists
(
'
\\
yii\\base\\ErrorException'
,
false
))
{
if
(
!
class_exists
(
'yii\\base\\ErrorException'
,
false
))
{
require_once
(
__DIR__
.
'/ErrorException.php'
);
}
$exception
=
new
ErrorException
(
$message
,
$code
,
$code
,
$file
,
$line
);
...
...
@@ -151,7 +151,7 @@ abstract class ErrorHandler extends Component
// load ErrorException manually here because autoloading them will not work
// when error occurs while autoloading a class
if
(
!
class_exists
(
'
\\
yii\\base\\ErrorException'
,
false
))
{
if
(
!
class_exists
(
'yii\\base\\ErrorException'
,
false
))
{
require_once
(
__DIR__
.
'/ErrorException.php'
);
}
...
...
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