Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1098821
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
Thu, Aug 14, 6:00 AM
Size
508 B
Mime Type
text/x-diff
Expires
Fri, Aug 15, 6:00 AM (2 h, 14 m)
Engine
blob
Format
Raw Data
Handle
711020
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