Download src/php/php-src/ext/odbc/tests/bug71171.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 771 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/odbc/tests/bug71171.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/odbc/tests/bug71171.phpt
-
curl -L -o bug71171.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/odbc/tests/bug71171.phpt
771 Bytes
| --TEST-- | |
| Bug #71171 odbc_fetch_array generates SIGFAULT, variant 0 | |
| --EXTENSIONS-- | |
| odbc | |
| --SKIPIF-- | |
| include 'skipif.inc'; | |
| --FILE-- | |
| include 'config.inc'; | |
| $conn = odbc_connect($dsn, $user, $pass); | |
| odbc_exec($conn, 'CREATE TABLE bug71171 (ID INT, VARCHAR_COL NVARCHAR(40))'); | |
| odbc_exec($conn, "INSERT INTO bug71171(ID, VARCHAR_COL) VALUES (1, '" . chr(0x81) . "')"); | |
| $res = odbc_exec($conn,"SELECT ID FROM bug71171 WHERE VARCHAR_COL = '" . chr(0x81) . "'"); | |
| if ($res) { | |
| while($record = odbc_fetch_array($res)) var_dump($record); | |
| } | |
| odbc_close($conn); | |
| --CLEAN-- | |
| include 'config.inc'; | |
| $conn = odbc_connect($dsn, $user, $pass); | |
| odbc_exec($conn, 'DROP TABLE bug71171'); | |
| odbc_close($conn); | |
| --EXPECT-- | |
| array(1) { | |
| ["ID"]=> | |
| string(1) "1" | |
| } | |