Download src/php/php-src/ext/pdo_mysql/tests/bug_51670.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 558 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_mysql/tests/bug_51670.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pdo_mysql/tests/bug_51670.phpt
-
curl -L -o bug_51670.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_mysql/tests/bug_51670.phpt
558 Bytes
| --TEST-- | |
| Bug #51670 (getColumnMeta causes segfault when re-executing query after calling nextRowset) | |
| --EXTENSIONS-- | |
| pdo_mysql | |
| --SKIPIF-- | |
| require_once __DIR__ . '/inc/mysql_pdo_test.inc'; | |
| MySQLPDOTest::skip(); | |
| --FILE-- | |
| require_once __DIR__ . '/inc/mysql_pdo_test.inc'; | |
| $db = MySQLPDOTest::factory(); | |
| $query = $db->prepare('SELECT 1 AS num'); | |
| $query->execute(); | |
| if(!is_array($query->getColumnMeta(0))) die('FAIL!'); | |
| $query->nextRowset(); | |
| $query->execute(); | |
| if(!is_array($query->getColumnMeta(0))) die('FAIL!'); | |
| echo 'done!'; | |
| --EXPECT-- | |
| done! | |