Download src/php/php-src/ext/pdo_pgsql/tests/bug_64705.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 371 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_pgsql/tests/bug_64705.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pdo_pgsql/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_pgsql/tests/bug_64705.phpt
371 Bytes
| --TEST-- | |
| Bug #64705 errorInfo property of PDOException is null when PDO::__construct() fails | |
| --EXTENSIONS-- | |
| pdo_pgsql | |
| --FILE-- | |
| $dsn = 'pgsql:host=DonotExistsHost;dbname=test;user=foo;password=wrongpass'; | |
| try { | |
| $pdo = new \PDO($dsn, null, null); | |
| } catch (\PDOException $e) { | |
| var_dump(!empty($e->errorInfo) && is_array($e->errorInfo)); | |
| } | |
| --EXPECT-- | |
| bool(true) | |