Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2875019
D25387.1736968303.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
977 B
Referenced Files
None
Subscribers
None
D25387.1736968303.diff
View Options
diff --git a/src/error/PhutilErrorHandler.php b/src/error/PhutilErrorHandler.php
--- a/src/error/PhutilErrorHandler.php
+++ b/src/error/PhutilErrorHandler.php
@@ -203,12 +203,17 @@
if (($num === E_USER_ERROR) ||
($num === E_USER_WARNING) ||
- ($num === E_USER_NOTICE)) {
+ ($num === E_USER_NOTICE) ||
+ ($num === E_DEPRECATED)) {
+
+ // See T15554 - we special-case E_DEPRECATED because we don't want them
+ // to kill the process.
+ $level = ($num === E_DEPRECATED) ? self::DEPRECATED : self::ERROR;
$trace = debug_backtrace();
array_shift($trace);
self::dispatchErrorMessage(
- self::ERROR,
+ $level,
$str,
array(
'file' => $file,
@@ -380,6 +385,7 @@
$timestamp = date('Y-m-d H:i:s');
switch ($event) {
+ case self::DEPRECATED:
case self::ERROR:
$default_message = sprintf(
'[%s] ERROR %d: %s at [%s:%d]',
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 15, 19:11 (2 d, 8 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1108759
Default Alt Text
D25387.1736968303.diff (977 B)
Attached To
Mode
D25387: Error handling: send Deprecation messages as explicit Event
Attached
Detach File
Event Timeline
Log In to Comment