1--TEST--
2SQLite3 user authorizer null
3--EXTENSIONS--
4sqlite3
5--FILE--
6<?php
7
8$db = new SQLite3(':memory:');
9$db->enableExceptions(true);
10
11$db->setAuthorizer(null);
12
13// This query should be accepted
14var_dump($db->querySingle('SELECT 1;'));
15
16try {
17    // This one should fail
18    var_dump($db->querySingle('CREATE TABLE test (a, b);'));
19} catch (\Exception $e) {
20    echo $e->getMessage() . "\n";
21}
22
23?>
24--EXPECT--
25int(1)
26NULL
27