--TEST-- PDO Common: PDO::FETCH_LAZY --SKIPIF-- --FILE-- exec('create table test (id int, name varchar(10))'); $db->exec("INSERT INTO test (id,name) VALUES(1,'test1')"); $db->exec("INSERT INTO test (id,name) VALUES(2,'test2')"); foreach ($db->query("SELECT * FROM test", PDO::FETCH_LAZY) as $v) { echo "lazy: " . $v->id.$v->name."\n"; } echo "End\n"; ?> --EXPECT-- lazy: 1test1 lazy: 2test2 End