fix sqlite test
[m6w6/ext-psi] / tests / sqlite / sqlite001.phpt
index a5e131674cd0ca2e072b795a732f8c0ef60ac4f1..a243e75dcf721193435932638d512941ce90d6f1 100644 (file)
@@ -2,6 +2,7 @@
 sqlite3
 --INI--
 psi.directory={PWD}:{PWD}/../../psi.d
+psi.blacklist.decls="sqlite3_*serialize,sqlite3_stmt_scanstatus*,sqlite3_snapshot*"
 --SKIPIF--
 <?php
 extension_loaded("psi") or printf("%s\n", "skip - need ext/psi");
@@ -52,6 +53,11 @@ if ($rc) {
 
 sqlite3\close($db);
 
+$rc = sqlite3\exec($db, "SELECT *", "callback", new stdClass, $error);
+if ($rc) {
+       printf("%s: '%s'\n", sqlite3\errstr($rc), $error);
+}
+
 ?>
 ===DONE===
 --EXPECTF--
@@ -72,7 +78,8 @@ string(%d) "3.%d.%s"
 2: id = 3
 2: data = three
 
-SQL logic error or missing database: 'no tables specified'
+SQL logic error%s
+%s: ''
 ===DONE===
 --CLEAN--
 <?php