File size: 257 Bytes
1e94262
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--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)