Download src/php/php-src/ext/pdo_mysql/tests/bug_37445.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 605 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_mysql/tests/bug_37445.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pdo_mysql/tests/bug_37445.phpt
-
curl -L -o bug_37445.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_mysql/tests/bug_37445.phpt
605 Bytes
| --TEST-- | |
| PDO MySQL Bug #37445 (Premature stmt object destruction) | |
| --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(); | |
| $db->setAttribute(PDO :: ATTR_EMULATE_PREPARES, true); | |
| $stmt = $db->prepare("SELECT 1"); | |
| $stmt->bindParam(':a', 'b'); | |
| --EXPECTF-- | |
| Fatal error: Uncaught Error: PDOStatement::bindParam(): Argument #2 ($var) could not be passed by reference in %sbug_37445.php:%d | |
| Stack trace: | |
| #0 {main} | |
| thrown in %sbug_37445.php on line %d | |