Download src/php/php-src/ext/pdo_sqlite/tests/bug_64705.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 359 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_sqlite/tests/bug_64705.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pdo_sqlite/tests/bug_64705.phpt
-
curl -L -o bug_64705.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_sqlite/tests/bug_64705.phpt
359 Bytes
| --TEST-- | |
| Bug #64705 errorInfo property of PDOException is null when PDO::__construct() fails | |
| --EXTENSIONS-- | |
| pdo_sqlite | |
| --FILE-- | |
| $dsn = 'sqlite:./bug64705NonExistingDir/bug64705NonExistingDb'; | |
| try { | |
| $pdo = new \PDO($dsn, null, null); | |
| } catch (\PDOException $e) { | |
| var_dump(!empty($e->errorInfo) && is_array($e->errorInfo)); | |
| } | |
| --EXPECT-- | |
| bool(true) | |