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
a92e214b
Commit
a92e214b
authored
Oct 31, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #5770: Added more PHP error names for `ErrorException`
parent
b2341edf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
+13
-12
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
ErrorException.php
framework/base/ErrorException.php
+12
-12
No files found.
framework/CHANGELOG.md
View file @
a92e214b
...
@@ -25,6 +25,7 @@ Yii Framework 2 Change Log
...
@@ -25,6 +25,7 @@ Yii Framework 2 Change Log
-
Enh #5613: Added
`--overwrite`
option to Gii console command to support overwriting all files (motin, qiangxue)
-
Enh #5613: Added
`--overwrite`
option to Gii console command to support overwriting all files (motin, qiangxue)
-
Enh #5646: Call
`yii\base\ErrorHandler::unregister()`
instead of
`restore_*_handlers`
directly (aivus)
-
Enh #5646: Call
`yii\base\ErrorHandler::unregister()`
instead of
`restore_*_handlers`
directly (aivus)
-
Enh #5735: Added
`yii\bootstrap\Tabs::renderTabContent`
to support manually rendering tab contents (RomeroMsk)
-
Enh #5735: Added
`yii\bootstrap\Tabs::renderTabContent`
to support manually rendering tab contents (RomeroMsk)
-
Enh #5770: Added more PHP error names for
`ErrorException`
(mongosoft)
-
Enh #5806: Allow
`Html::encode()`
to be used when the application is not started (qiangxue)
-
Enh #5806: Allow
`Html::encode()`
to be used when the application is not started (qiangxue)
-
Enh:
`Console::confirm()`
now uses
`Console::stdout()`
instead of
`echo`
to be consistent with all other functions (cebe)
-
Enh:
`Console::confirm()`
now uses
`Console::stdout()`
instead of
`echo`
to be consistent with all other functions (cebe)
-
Chg #3630:
`yii\db\Command::queryInternal()`
is now protected (samdark)
-
Chg #3630:
`yii\db\Command::queryInternal()`
is now protected (samdark)
...
...
framework/base/ErrorException.php
View file @
a92e214b
...
@@ -73,22 +73,22 @@ class ErrorException extends \ErrorException
...
@@ -73,22 +73,22 @@ class ErrorException extends \ErrorException
*/
*/
public
function
getName
()
public
function
getName
()
{
{
$names
=
[
static
$names
=
[
E_ERROR
=>
'PHP Fatal Error'
,
E_WARNING
=>
'PHP Warning'
,
E_PARSE
=>
'PHP Parse Error'
,
E_NOTICE
=>
'PHP Notice'
,
E_CORE_ERROR
=>
'PHP Core Error'
,
E_CORE_WARNING
=>
'PHP Core Warning'
,
E_COMPILE_ERROR
=>
'PHP Compile Error'
,
E_COMPILE_ERROR
=>
'PHP Compile Error'
,
E_COMPILE_WARNING
=>
'PHP Compile Warning'
,
E_COMPILE_WARNING
=>
'PHP Compile Warning'
,
E_USER_ERROR
=>
'PHP User Error'
,
E_CORE_ERROR
=>
'PHP Core Error'
,
E_USER_WARNING
=>
'PHP User Warning'
,
E_CORE_WARNING
=>
'PHP Core Warning'
,
E_USER_NOTICE
=>
'PHP User Notice'
,
E_STRICT
=>
'PHP Strict Warning'
,
E_RECOVERABLE_ERROR
=>
'PHP Recoverable Error'
,
E_DEPRECATED
=>
'PHP Deprecated Warning'
,
E_DEPRECATED
=>
'PHP Deprecated Warning'
,
E_ERROR
=>
'PHP Fatal Error'
,
E_NOTICE
=>
'PHP Notice'
,
E_PARSE
=>
'PHP Parse Error'
,
E_RECOVERABLE_ERROR
=>
'PHP Recoverable Error'
,
E_STRICT
=>
'PHP Strict Warning'
,
E_USER_DEPRECATED
=>
'PHP User Deprecated Warning'
,
E_USER_DEPRECATED
=>
'PHP User Deprecated Warning'
,
E_USER_ERROR
=>
'PHP User Error'
,
E_USER_NOTICE
=>
'PHP User Notice'
,
E_USER_WARNING
=>
'PHP User Warning'
,
E_WARNING
=>
'PHP Warning'
,
];
];
return
isset
(
$names
[
$this
->
getCode
()])
?
$names
[
$this
->
getCode
()]
:
'Error'
;
return
isset
(
$names
[
$this
->
getCode
()])
?
$names
[
$this
->
getCode
()]
:
'Error'
;
...
...
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