Issues

ZF2-262: Zend\Db\Adapter\Driver\Mysqli\Result Iterator implementation mangled

Description

When I try to do


$result = $this->getAdapter()->query($sql)->execute();

$result instanceof \Iterator; //bool(true)
count($result); //0
count(iterator_to_array($result)) //5

Therefore, Zend\Paginator does not work even when using Iterator adapter.

Comments

This appears to be a clone of [ZF2-281] http://framework.zend.com/issues/browse/ZF2-281 (they both depend on the Result & ResultSet Iterator)

Proposed git pull https://github.com/zendframework/zf2/pull/1201 (commit https://github.com/dgasparri/zf2-testserver/… )