Download src/php/php-src/ext/pgsql/tests/00version.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 992 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pgsql/tests/00version.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pgsql/tests/00version.phpt
-
curl -L -o 00version.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pgsql/tests/00version.phpt
992 Bytes
| --TEST-- | |
| PostgreSQL version | |
| --EXTENSIONS-- | |
| pgsql | |
| --SKIPIF-- | |
| include("inc/skipif.inc"); | |
| --FILE-- | |
| // Get postgresql version for easier debugging. | |
| // Execute run-test.php with --keep-all to get version string in 00version.log or 00version.out | |
| include('inc/config.inc'); | |
| $db = pg_connect($conn_str); | |
| var_dump(pg_version($db)); | |
| pg_close($db); | |
| // Get environment vars for debugging | |
| var_dump(serialize($_ENV)); | |
| echo "OK"; | |
| --EXPECTF-- | |
| array(13) { | |
| ["client"]=> | |
| string(%d) "%s" | |
| ["protocol"]=> | |
| int(%d) | |
| ["server"]=> | |
| string(%d) "%s" | |
| ["server_encoding"]=> | |
| string(%d) "%s" | |
| ["client_encoding"]=> | |
| string(%d) "%s" | |
| ["is_superuser"]=> | |
| string(%d) "%s" | |
| ["session_authorization"]=> | |
| string(%d) "%s" | |
| ["DateStyle"]=> | |
| string(%d) "%s" | |
| ["IntervalStyle"]=> | |
| string(%d) %s | |
| ["TimeZone"]=> | |
| string(%d) "%s" | |
| ["integer_datetimes"]=> | |
| string(%d) "%s" | |
| ["standard_conforming_strings"]=> | |
| string(%d) "%s" | |
| ["application_name"]=> | |
| string(%d) %s | |
| } | |
| string(%d) "%a" | |
| OK | |