Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2680728
D25810.1734619861.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
581 B
Referenced Files
None
Subscribers
None
D25810.1734619861.diff
View Options
diff --git a/src/future/http/status/HTTPFutureHTTPResponseStatus.php b/src/future/http/status/HTTPFutureHTTPResponseStatus.php
--- a/src/future/http/status/HTTPFutureHTTPResponseStatus.php
+++ b/src/future/http/status/HTTPFutureHTTPResponseStatus.php
@@ -11,6 +11,8 @@
array $headers,
$expect = null) {
+ // As $body can be null (T15930), make sure this code deals with a string
+ $body = phutil_string_cast($body);
// NOTE: Avoiding PhutilUTF8StringTruncator here because this isn't lazy
// and responses may be large.
if (strlen($body) > 512) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 14:51 (10 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1015102
Default Alt Text
D25810.1734619861.diff (581 B)
Attached To
Mode
D25810: Fix PHP 8.1 "strlen(null)" exception in HTTPFutureHTTPResponseStatus
Attached
Detach File
Event Timeline
Log In to Comment