Download src/php/php-src/ext/pdo_odbc/tests/bug44643.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 555 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_odbc/tests/bug44643.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pdo_odbc/tests/bug44643.phpt
-
curl -L -o bug44643.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_odbc/tests/bug44643.phpt
555 Bytes
| --TEST-- | |
| Bug #44643 (bound parameters ignore explicit type definitions) | |
| --EXTENSIONS-- | |
| pdo_odbc | |
| --SKIPIF-- | |
| require 'ext/pdo/tests/pdo_test.inc'; | |
| PDOTest::skip(); | |
| --FILE-- | |
| require 'ext/pdo/tests/pdo_test.inc'; | |
| $db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt'); | |
| $sql = "SELECT * FROM (SELECT 'test' = :id1) a WHERE a.test = :id2"; | |
| $stmt = $db->prepare($sql); | |
| $id1 = 1; | |
| $stmt->bindParam(':id1', $id1, PDO::PARAM_INT); | |
| $id2 = 1; | |
| $stmt->bindParam(':id2', $id2, PDO::PARAM_INT); | |
| var_dump($stmt->execute()); | |
| --EXPECT-- | |
| bool(true) | |