mirror of https://github.com/php/php-src
Browse Source
$d = new PDO('foobar'); // name has no : character
This will indirect via the entry "pdo.dsn.foobar" from the php.ini file,
so if you have:
pdo.dsn.foobar=sqlite::memory:
the above is equivalent to this:
$d = new PDO('sqlite::memory:');
which creates an in-memory sqlite db.
PHP-5.1
1 changed files with 18 additions and 3 deletions
Loading…
Reference in new issue