Commit 8fe368ea authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge pull request #144 from kimhemsoe/mysqli_memleak

[MYSQLI] Fixed infinite loop in fetchAll()
parents fc3ead25 87f21bd8
......@@ -255,7 +255,7 @@ class MysqliStatement implements \IteratorAggregate, Statement
$a = array();
if (PDO::FETCH_COLUMN == $fetchStyle) {
while (($value = $this->fetchColumn()) !== null) {
while (($value = $this->fetchColumn()) !== false) {
$a[] = $value;
}
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment