Download src/php/php-src/ext/pdo_sqlite/tests/bug50728.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 257 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_sqlite/tests/bug50728.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pdo_sqlite/tests/bug50728.phpt
-
curl -L -o bug50728.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_sqlite/tests/bug50728.phpt
257 Bytes
| --TEST-- | |
| Bug #50728 (All PDOExceptions hardcode 'code' property to 0) | |
| --EXTENSIONS-- | |
| pdo_sqlite | |
| --FILE-- | |
| try { | |
| $a = new PDO("sqlite:/this/path/should/not/exist.db"); | |
| } catch (PDOException $e) { | |
| var_dump($e->getCode()); | |
| } | |
| --EXPECT-- | |
| int(14) | |