Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Zend\Db: Merging in patch for casting of PDO row count to int

  • Loading branch information...
commit a68d8c6db9a04678d8de4afdd48b4522e25c80b7 1 parent 0a1f02e
@ralphschindler ralphschindler authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 library/Zend/Db/Adapter/Driver/Pdo/Result.php
View
4 library/Zend/Db/Adapter/Driver/Pdo/Result.php
@@ -176,9 +176,9 @@ public function count()
return $this->rowCount;
}
if ($this->rowCount instanceof \Closure) {
- $this->rowCount = call_user_func($this->rowCount);
+ $this->rowCount = (int) call_user_func($this->rowCount);
} else {
- $this->rowCount = $this->resource->rowCount();
+ $this->rowCount = (int) $this->resource->rowCount();
}
return $this->rowCount;
}
Please sign in to comment.
Something went wrong with that request. Please try again.