Page MenuHomePhorge

D25165.1737719224.diff
No OneTemporary

D25165.1737719224.diff

diff --git a/src/applications/console/core/DarkConsoleCore.php b/src/applications/console/core/DarkConsoleCore.php
--- a/src/applications/console/core/DarkConsoleCore.php
+++ b/src/applications/console/core/DarkConsoleCore.php
@@ -124,6 +124,9 @@
} else if (is_resource($data)) {
return '<resource>';
} else {
+ // This is very probably not a string in strict sense
+ $data = phutil_string_cast($data);
+
// Truncate huge strings. Since the data doesn't really matter much,
// just truncate bytes to avoid PhutilUTF8StringTruncator overhead.
$length = strlen($data);

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 24, 11:47 (6 d, 10 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1135576
Default Alt Text
D25165.1737719224.diff (616 B)

Event Timeline