Skip to content

Commit 98c8808

Browse files
committed
Fix bug: body is omitted when memory_limit = -1
1 parent 109aee8 commit 98c8808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Common/Error/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function str(MessageInterface $message): string
9797
$msg .= "\r\n{$name}: " . implode(', ', $values);
9898
}
9999

100-
if ($message->getBody()->getSize() < ini_get('memory_limit')) {
100+
if (ini_get('memory_limit') < 0 || $message->getBody()->getSize() < ini_get('memory_limit')) {
101101
$msg .= "\r\n\r\n" . $message->getBody();
102102
}
103103

0 commit comments

Comments
 (0)