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...
use IO exceptions instead of generic ones in IO classes
replace remaining generic exceptions
Merge pull request #122 from oker1/io_exceptions

Use IO exceptions instead of generic ones in IO classes
Add support for connection.blocked and connection.unblocked
adds ‘b’ field type to read_value
tyop
checks for network timeout while reading data from the network
fixes comment
fixes regression - we need a better way to handle read timeouts
declares channel_max and frame_max as properties
adds arguments to basicConsume on 091 channels
Fixed typos
Merge pull request #132 from pborreli/typos

Fixed typos
Remove PHP5.4 keywords
Merge pull request #135 from thibaud-evaneos/master

Remove PHP5.4 keywords
allow timeouts with better precision than seconds