busyTimeout(1000); $start = microtime(true); $res = $db->query('SELECT * FROM `test`'); // should display a warning $time = microtime(true)-$start; var_dump((int)round($time*100), $res); // should display int(100) and bool(false) (we give +/- 10ms as host system might be lagging) exit; } $db = new SQLite3('test_sqlite3.db'); // Allow us to keep locks $db->query('PRAGMA locking_mode = EXCLUSIVE'); // http://www.sqlite.org/pragma.html $db->query('CREATE TABLE `test` (`foobar` INT)'); sleep(3); $db->close(); unlink('test_sqlite3.db');