Commit 87f21bd8 authored by Kim Hemsø Rasmussen's avatar Kim Hemsø Rasmussen

[MYSQLI] Fixed infinite loop in fetchAll()

parent fc3ead25
...@@ -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