Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1046530
D377.id950.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jun 28, 7:45 PM
Size
508 B
Mime Type
text/x-diff
Expires
Sun, Jun 29, 7:45 PM (7 h, 32 m)
Engine
blob
Format
Raw Data
Handle
676434
Attached To
D377: INP-1779 - Throw an exception, when SQL error is detected in CLI
D377.id950.diff
View Options
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
Log In to Comment