Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2931632
D25165.1737719224.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
616 B
Referenced Files
None
Subscribers
None
D25165.1737719224.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D25165: Fix PHP 8.1 "strlen(null)" exceptions which block rendering the DarkConsole
Attached
Detach File
Event Timeline
Log In to Comment