summaryrefslogtreecommitdiff
path: root/ext/pdo_sqlite/tests/bug50728.phpt
blob: 98f8907f485ec0ea616a141d7d9cbc5bff23a738 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Bug #50728 (All PDOExceptions hardcode 'code' property to 0)
--SKIPIF--
<?php
if (!extension_loaded('pdo_sqlite')) print 'skip not loaded';
?>
--FILE--
<?php
try {
    $a = new PDO("sqlite:/this/path/should/not/exist.db");
} catch (PDOException $e) {
    var_dump($e->getCode());
}
?>
--EXPECT--
int(14)