mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
19 lines
383 B
PHP
19 lines
383 B
PHP
--TEST--
|
|
Calling PDO::connect through the wrong classname
|
|
--EXTENSIONS--
|
|
pdo_sqlite
|
|
--FILE--
|
|
<?php
|
|
|
|
class MyPDO extends PDO {}
|
|
|
|
try {
|
|
MyPDO::connect('sqlite::memory:');
|
|
} catch (PDOException $e) {
|
|
echo $e->getMessage() . "\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
MyPDO::connect() cannot be used for connecting to the "sqlite" driver, either call Pdo\Sqlite::connect() or PDO::connect() instead
|