mirror of
https://github.com/php/php-src.git
synced 2026-03-25 16:52:18 +01:00
15 lines
257 B
PHP
15 lines
257 B
PHP
--TEST--
|
|
Bug #50728 (All PDOExceptions hardcode 'code' property to 0)
|
|
--EXTENSIONS--
|
|
pdo_sqlite
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
$a = new PDO("sqlite:/this/path/should/not/exist.db");
|
|
} catch (PDOException $e) {
|
|
var_dump($e->getCode());
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
int(14)
|