Download src/php/php-src/ext/odbc/tests/odbc_setoption_002.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 497 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/odbc/tests/odbc_setoption_002.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/odbc/tests/odbc_setoption_002.phpt
-
curl -L -o odbc_setoption_002.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/odbc/tests/odbc_setoption_002.phpt
497 Bytes
| --TEST-- | |
| odbc_setoption(): Test for odbc_setoption() with persistent connection | |
| --EXTENSIONS-- | |
| odbc | |
| --SKIPIF-- | |
| include 'skipif.inc'; | |
| --FILE-- | |
| include 'config.inc'; | |
| $conn = odbc_pconnect($dsn, $user, $pass); | |
| odbc_autocommit($conn, true); | |
| var_dump(odbc_setoption($conn, 1, 102 /* autocommit */, 0)); | |
| var_dump(odbc_autocommit($conn)); | |
| odbc_close($conn); | |
| --EXPECTF-- | |
| Warning: odbc_setoption(): Unable to set option for persistent connection in %s on line %d | |
| bool(false) | |
| int(1) | |