First of all, no Zend Framework database adapters use ext / mysql . Adapters exist for ext / mysqli and ext / pdo_mysql .
In the MySQLi adapter, it always calls mysqli_store_result()(see Zend / Db / Statement / Mysqli.php, near line 250), which means that it only supports buffered query results. Zend Framework does not currently support any variation of this parameter, so you can try editing this line of code yourself to use mysqli_use_result().
edit: The PDO_MySQL adapter uses a buffered query by default .
PHP 5.4.6 source, ext / pdo_mysql / mysql_driver.c file, line 590, in the pdo_mysql_handle_factory () function:
H->buffered = H->emulate_prepare = 1;
, , fetchAll() , , , PHP. .