videlalvaro/php-amqplib — pull request #23 by spronkey (2012-07-05 02:06:57+00:00)
Title: fclose() suppression operator

Wrapped fclose() in is_resource() call. It gets called twice in many instances (BufferedInput closes socket first, then close_socket attempts again). Custom error routines in some frameworks don't check for 0 value in $error_type of set_error_handler indicating @ suppression operator used. This is safer.