Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1176194
D377.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
Mon, Oct 6, 2:37 AM
Size
508 B
Mime Type
text/x-diff
Expires
Tue, Oct 7, 2:37 AM (21 h, 50 m)
Engine
blob
Format
Raw Data
Handle
762986
Attached To
D377: INP-1779 - Throw an exception, when SQL error is detected in CLI
D377.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