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 ...@@ -255,7 +255,7 @@ class MysqliStatement implements \IteratorAggregate, Statement
$a = array(); $a = array();
if (PDO::FETCH_COLUMN == $fetchStyle) { if (PDO::FETCH_COLUMN == $fetchStyle) {
while (($value = $this->fetchColumn()) !== null) { while (($value = $this->fetchColumn()) !== false) {
$a[] = $value; $a[] = $value;
} }
} else { } 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