Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F727030
D110.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, Jan 6, 5:20 AM
Size
635 B
Mime Type
text/x-diff
Expires
Tue, Jan 7, 5:20 AM (2 d, 22 h ago)
Engine
blob
Format
Raw Data
Handle
537097
Attached To
D110: INP-1460 - Check if object is castable to string in the "m_PrintCurrentParams" tag
D110.diff
View Options
Index: branches/5.2.x/core/kernel/processors/main_processor.php
===================================================================
--- branches/5.2.x/core/kernel/processors/main_processor.php
+++ branches/5.2.x/core/kernel/processors/main_processor.php
@@ -1176,6 +1176,10 @@
$current_params = $this->Application->Parser->Params;
foreach ($current_params as $param_name => $param_value) {
+ if ( is_object($param_value) && !method_exists($param_value, '__toString') ) {
+ $param_value = 'ClassName: ' . get_class($param_value);
+ }
+
$current_params[$param_name] = $param_name . ' = "' . $param_value . '"';
}
Event Timeline
Log In to Comment