--TEST-- SQLite3::prepare test, testing for faulty statement --CREDITS-- Michelangelo van Dam # Belgian PHP Testfest 2009 --EXTENSIONS-- sqlite3 --FILE-- exec('CREATE TABLE foo (id INTEGER, bar STRING)'); $db->exec("INSERT INTO foo (id, bar) VALUES (1, 'This is a test')"); $stmt = $db->prepare('SELECT foo FROM bar'); var_dump($stmt); ?> --EXPECTF-- Warning: SQLite3::prepare(): Unable to prepare statement: no such table: bar in %s on line %d bool(false)