Download src/php/php-src/ext/pdo_dblib/tests/dbversion.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 366 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_dblib/tests/dbversion.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pdo_dblib/tests/dbversion.phpt
-
curl -L -o dbversion.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_dblib/tests/dbversion.phpt
366 Bytes
| --TEST-- | |
| PDO_DBLIB: \PDO::DBLIB_ATTR_VERSION exposes a string | |
| --EXTENSIONS-- | |
| pdo_dblib | |
| --SKIPIF-- | |
| require __DIR__ . '/config.inc'; | |
| getDbConnection(); | |
| --FILE-- | |
| require __DIR__ . '/config.inc'; | |
| $db = getDbConnection(); | |
| $version = $db->getAttribute(PDO::DBLIB_ATTR_VERSION); | |
| var_dump(is_string($version) && strlen($version)); | |
| --EXPECT-- | |
| bool(true) | |