mirror of
https://github.com/php/php-src.git
synced 2024-12-05 07:46:06 +08:00
17 lines
308 B
PHP
17 lines
308 B
PHP
--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());
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
int(14)
|