Download src/php/php-src/ext/pdo_dblib/tests/bug_69757.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 693 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_dblib/tests/bug_69757.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pdo_dblib/tests/bug_69757.phpt
-
curl -L -o bug_69757.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_dblib/tests/bug_69757.phpt
693 Bytes
| --TEST-- | |
| PDO_DBLIB: Segmentation fault on pdo_dblib::nextRowset | |
| --EXTENSIONS-- | |
| pdo_dblib | |
| --SKIPIF-- | |
| require __DIR__ . '/config.inc'; | |
| getDbConnection(); | |
| --FILE-- | |
| require __DIR__ . '/config.inc'; | |
| $db = getDbConnection(); | |
| $sql = " | |
| exec dbo.sp_executesql N' | |
| SELECT TOP 1 * FROM sysobjects | |
| SELECT TOP 1 * FROM syscolumns | |
| ' | |
| "; | |
| $stmt = $db->query($sql); | |
| $resultset1 = $stmt->fetchAll(PDO::FETCH_ASSOC); | |
| if (true !== $stmt->nextRowset()) { | |
| die('expect TRUE on nextRowset'); | |
| } | |
| $resultset2 = $stmt->fetchAll(PDO::FETCH_ASSOC); | |
| if (false !== $stmt->nextRowset()) { | |
| die('expect FALSE on nextRowset'); | |
| } | |
| $stmt->closeCursor(); | |
| echo "OK\n"; | |
| --EXPECT-- | |
| OK | |