1--TEST-- 2Bug #79294 ()::columnType() may fail after SQLite3Stmt::reset()) 3--EXTENSIONS-- 4sqlite3 5--FILE-- 6<?php 7$db = new SQLite3(':memory:'); 8$db->exec("CREATE TABLE foo (bar INT)"); 9$db->exec("INSERT INTO foo VALUES (1)"); 10 11$stmt = $db->prepare("SELECT * FROM foo"); 12$res = $stmt->execute(); 13var_dump($res->fetchArray() !== false); 14var_dump($res->columnType(0)); 15var_dump($res->fetchArray() !== false); 16var_dump($res->columnType(0)); 17$stmt->reset(); 18var_dump($res->fetchArray() !== false); 19var_dump($res->columnType(0)); 20$res->reset(); 21var_dump($res->fetchArray() !== false); 22var_dump($res->columnType(0)); 23?> 24--EXPECT-- 25bool(true) 26int(1) 27bool(false) 28bool(false) 29bool(true) 30int(1) 31bool(true) 32int(1) 33