Download src/php/php-src/ext/odbc/tests/bug69975.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 676 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/odbc/tests/bug69975.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/odbc/tests/bug69975.phpt
-
curl -L -o bug69975.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/odbc/tests/bug69975.phpt
676 Bytes
| --TEST-- | |
| Bug #69975 (PHP segfaults when accessing nvarchar(max) defined columns) | |
| --EXTENSIONS-- | |
| odbc | |
| --SKIPIF-- | |
| include 'skipif.inc'; | |
| --FILE-- | |
| include 'config.inc'; | |
| $conn = odbc_connect($dsn, $user, $pass); | |
| odbc_exec($conn, 'CREATE TABLE bug69975 (ID INT, VARCHAR_COL NVARCHAR(MAX))'); | |
| odbc_exec($conn, "INSERT INTO bug69975 VALUES (1, 'foo')"); | |
| $result = odbc_exec($conn, "SELECT VARCHAR_COL FROM bug69975"); | |
| var_dump(odbc_fetch_array($result)); | |
| echo "ready"; | |
| --CLEAN-- | |
| include 'config.inc'; | |
| $conn = odbc_connect($dsn, $user, $pass); | |
| odbc_exec($conn, 'DROP TABLE bug69975'); | |
| --EXPECT-- | |
| array(1) { | |
| ["VARCHAR_COL"]=> | |
| string(3) "foo" | |
| } | |
| ready | |