Speed up AbstractConnection::prepare_content() with circular buffer.
Speed up both AMQPChannel::basic_publish() and publish_batch() with a
common circular buffer.
Update README.md

change version in composer.json example
Merge pull request #114 from eclips16/patch-1

Update README.md
[minor][pull-request] Restore previous .gitignore version and remove
typo extra space.
Merge pull request #113 from Hi-Media/optimization

Optimization for basic_publish
bumps version for composer
exit from while if fread return an empty string

in case of a read timeout, fread return an empty string and not false, we need to exit the while loop in this case

alternatively, we could read the 'timed_out' status from stream_get_meta_data like in the write method
Merge pull request #117 from znarf/read_timeout

exit from while if fread return an empty string
hotfix: continue instead of break from while if fread returns an empty string

Introduced in 461961f962ab70c63adfb78215fb66123605da7e

Breaking from the loop is causing the following exception:

    Consumer failure PhpAmqpLib\Exception\AMQPRuntimeException Exception 'Error reading data. Received 0 instead of expected 7 bytes':
    #0 /my/path/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/AMQPReader.php(128): PhpAmqpLib\Wire\IO\StreamIO->read(7)
    #1 /my/path/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/AMQPReader.php(88): PhpAmqpLib\Wire\AMQPReader->rawread(7)
    #2 /my/path/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(311): PhpAmqpLib\Wire\AMQPReader->read(7)
    #3 /my/path/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(344): PhpAmqpLib\Connection\AbstractConnection->wait_frame(0)
    #4 /my/path/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(121): PhpAmqpLib\Connection\AbstractConnection->wait_channel(1, 0)
    #5 /my/path/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(229): PhpAmqpLib\Channel\AbstractChannel->next_frame(0)

I believe because a string can be a valid data block transferred in and of itself. Merely continuing instead of breaking until the feof() fixes the problem on my version of Rabbit:

RabbitMQ 3.1.5, Erlang R14B04
Merge pull request #119 from akandels/patch-1

hotfix: continue instead of break from while if fread returns an empty s...
Merge branch 'master' of https://github.com/videlalvaro/php-amqplib