1--TEST--
2PDO_sqlite: Testing empty filename
3--EXTENSIONS--
4pdo_sqlite
5--FILE--
6<?php
7
8// create with empty filename
9$db = new PDO('sqlite:');
10
11var_dump($db->exec('CREATE TABLE test_sqlite_empty_filename (id INT);'));
12
13// create with empty URI
14$db = new PDO('sqlite:file:?cache=shared');
15
16var_dump($db->exec('CREATE TABLE test_sqlite_empty_filename (id INT);'));
17?>
18--EXPECT--
19int(0)
20int(0)
21