Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #16 from csautot/patch-1

Using is_resource() instead of gettype() for comparison.
  • Loading branch information...
commit b6e0bb2096400c9c845a1307714af69ba2d789d3 2 parents 9cf0d20 + b374c3e
@videlalvaro videlalvaro authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 amqp.inc
View
4 amqp.inc
@@ -415,7 +415,7 @@ class AMQPConnection extends AbstractChannel
if($this->input)
$this->close();
- if(gettype($this->sock) == 'resource')
+ if(is_resource($this->sock))
{
if($this->debug)
{
@@ -457,7 +457,7 @@ class AMQPConnection extends AbstractChannel
$this->input = NULL;
}
- if(gettype($this->sock) == 'resource')
+ if(is_resource($this->sock))
{
if($this->debug)
{
Please sign in to comment.
Something went wrong with that request. Please try again.