Download src/php/php-src/ext/odbc/tests/bug78473.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 335 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/odbc/tests/bug78473.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/odbc/tests/bug78473.phpt
-
curl -L -o bug78473.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/odbc/tests/bug78473.phpt
335 Bytes
| --TEST-- | |
| Bug #78473 (odbc_close() closes arbitrary resources) | |
| --EXTENSIONS-- | |
| odbc | |
| --FILE-- | |
| try { | |
| odbc_close(STDIN); | |
| } catch (TypeError $err) { | |
| echo $err->getMessage(), PHP_EOL; | |
| } | |
| var_dump(STDIN); | |
| --EXPECT-- | |
| odbc_close(): Argument #1 ($odbc) must be of type Odbc\Connection, resource given | |
| resource(1) of type (stream) | |