Skip to content

Commit

Permalink
Merge pull request #5 from haphan/client-body
Browse files Browse the repository at this point in the history
[rfr] Fix bug body is omitted when memory_limit is negative
  • Loading branch information
Jamie Hannaford authored Jun 22, 2016
2 parents 7830cb6 + 98c8808 commit 078508c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Common/Error/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function str(MessageInterface $message): string
$msg .= "\r\n{$name}: " . implode(', ', $values);
}

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

Expand Down

0 comments on commit 078508c

Please sign in to comment.