Page MenuHomePhorge

D25387.1736454558.diff
No OneTemporary

D25387.1736454558.diff

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

Mime Type
text/plain
Expires
Thu, Jan 9, 20:29 (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1108759
Default Alt Text
D25387.1736454558.diff (977 B)

Event Timeline