mirror of
https://github.com/php/php-src.git
synced 2026-04-04 22:52:40 +02:00
pdo_sqlite already supports empty filenames and shared in-memory DBs. Add tests for them.
21 lines
348 B
PHP
21 lines
348 B
PHP
--TEST--
|
|
PDO_sqlite: Testing empty filename
|
|
--EXTENSIONS--
|
|
pdo_sqlite
|
|
--FILE--
|
|
<?php
|
|
|
|
// create with empty filename
|
|
$db = new PDO('sqlite:');
|
|
|
|
var_dump($db->exec('CREATE TABLE test1 (id INT);'));
|
|
|
|
// create with empty URI
|
|
$db = new PDO('sqlite:file:?cache=shared');
|
|
|
|
var_dump($db->exec('CREATE TABLE test1 (id INT);'));
|
|
?>
|
|
--EXPECT--
|
|
int(0)
|
|
int(0)
|