1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 11:13:36 +02:00
Files
2024-01-11 23:22:41 +01:00

18 lines
383 B
PHP

--TEST--
Calling PDO::connect through the wrong classname
--EXTENSIONS--
pdo_pgsql
pdo_sqlite
--FILE--
<?php
try {
PdoPgSql::connect('sqlite::memory:');
} catch (PDOException $e) {
echo $e->getMessage() . "\n";
}
?>
--EXPECT--
PdoPgsql::connect() cannot be called when connecting to the "sqlite" driver, either PdoSqlite::connect() or PDO::connect() must be called instead