Skip to content

Commit

Permalink
issue-232: fix for endless loop
Browse files Browse the repository at this point in the history
  • Loading branch information
julia-emelyanova committed Dec 27, 2014
1 parent 4d57fde commit c6bdee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PhpAmqpLib/Connection/AbstractConnection.php
Expand Up @@ -422,7 +422,7 @@ public function prepare_content($channel, $class_id, $weight, $body_size, $packe
while ($body !== '') {
$bodyStart = ($this->frame_max - 8);
$payload = mb_substr($body, 0, $bodyStart, 'ASCII');
$body = mb_substr($body, $bodyStart, mb_strlen($body, 'ASCII') - $bodyStart, 'ASCII');
$body = (string)mb_substr($body, $bodyStart, mb_strlen($body, 'ASCII') - $bodyStart, 'ASCII');

$pkt->write_octet(3);
$pkt->write_short($channel);
Expand Down

0 comments on commit c6bdee3

Please sign in to comment.