videlalvaro/php-amqplib — pull request #1 by jordillonch (2011-11-22 15:22:36+00:00)
Title: detects broken pipe or closed connection on socket write

Added code to avoid an infinite loop on fwrite if pipe is broken or connection is closed:

http://www.php.net/manual/en/function.fwrite.php#96951