Page MenuHomeIn-Portal Phabricator

D377.id950.diff
No OneTemporary

File Metadata

Created
Sat, Jun 28, 7:45 PM

D377.id950.diff

Index: branches/5.2.x/core/kernel/utility/logger.php
===================================================================
--- branches/5.2.x/core/kernel/utility/logger.php
+++ branches/5.2.x/core/kernel/utility/logger.php
@@ -917,7 +917,11 @@
}
}
- // next line also trigger attached error handlers
+ if ( PHP_SAPI === 'cli' ) {
+ throw new RuntimeException($error_msg);
+ }
+
+ // Next line also trigger attached error handlers.
trigger_error($error_msg, E_USER_WARNING);
return true;

Event Timeline