Skip to content

Commit 36201db

Browse files
committed
return string in output handler
Returning a non-string result from user output handler is deprecated From https://wiki.php.net/rfc/deprecations_php_8_4 A return value of true is treated like a context reset, which is identical to returning an empty string.
1 parent c5c376e commit 36201db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/php_http_env_response.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ static PHP_METHOD(HttpEnvResponse, __invoke)
11651165
} else {
11661166
php_http_message_body_append(obj->message->body, ob_str, ob_len);
11671167
}
1168-
RETURN_TRUE;
1168+
RETURN_EMPTY_STRING();
11691169
}
11701170
}
11711171

0 commit comments

Comments
 (0)