Download src/php/php-src/ext/pdo_mysql/tests/bug70066.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 637 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_mysql/tests/bug70066.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pdo_mysql/tests/bug70066.phpt
-
curl -L -o bug70066.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_mysql/tests/bug70066.phpt
637 Bytes
| --TEST-- | |
| Bug #70066: Unexpected "Cannot execute queries while other unbuffered queries" | |
| --EXTENSIONS-- | |
| pdo_mysql | |
| --SKIPIF-- | |
| require_once __DIR__ . '/inc/mysql_pdo_test.inc'; | |
| MySQLPDOTest::skip(); | |
| --FILE-- | |
| require_once __DIR__ . '/inc/mysql_pdo_test.inc'; | |
| $pdo = MySQLPDOTest::factory(); | |
| $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | |
| $pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, 0); | |
| $db = $pdo->query('SELECT DATABASE()')->fetchColumn(0); | |
| // USE is not supported in the prepared statement protocol, | |
| // so this will fall back to emulation. | |
| $pdo->query('USE ' . $db); | |
| ===DONE=== | |
| --EXPECT-- | |
| ===DONE=== | |