videlalvaro/php-amqplib — pull request #218 by grongor (2014-11-03 12:10:32+00:00)
Title: Fixed UNEXPECTED_FRAME error

If your AMQPMessage body is "0" then the $body evaluates to false. That causes missing body in server request which results in really hard-to-find error "UNEXPECTED_FRAME - expected content body, got non content body frame instead".

This simple patch fixes the problem.