Download src/php/php-src/ext/pdo_firebird/tests/bug_48877.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 973 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_firebird/tests/bug_48877.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pdo_firebird/tests/bug_48877.phpt
-
curl -L -o bug_48877.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_firebird/tests/bug_48877.phpt
973 Bytes
| --TEST-- | |
| PDO_Firebird: bug 48877 The "bindValue" and "bindParam" do not work for PDO Firebird if we use named parameters (:parameter). | |
| --EXTENSIONS-- | |
| pdo_firebird | |
| --SKIPIF-- | |
| require('skipif.inc'); | |
| --FILE-- | |
| require("testdb.inc"); | |
| $value = '2'; | |
| $dbh = getDbConnection(); | |
| $dbh->exec('CREATE TABLE test48877 (A integer)'); | |
| $dbh->exec("INSERT INTO test48877 VALUES ('1')"); | |
| $dbh->exec("INSERT INTO test48877 VALUES ('2')"); | |
| $dbh->exec("INSERT INTO test48877 VALUES ('3')"); | |
| $query = "SELECT * FROM test48877 WHERE A = :paramno"; | |
| $stmt = $dbh->prepare($query); | |
| $stmt->bindParam(':paramno', $value, PDO::PARAM_STR); | |
| $stmt->execute(); | |
| $rows = $stmt->fetch(); | |
| var_dump($stmt->fetch()); | |
| var_dump($stmt->rowCount()); | |
| $stmt = $dbh->prepare('DELETE FROM test48877'); | |
| $stmt->execute(); | |
| unset($stmt); | |
| unset($dbh); | |
| --CLEAN-- | |
| require 'testdb.inc'; | |
| $dbh = getDbConnection(); | |
| @$dbh->exec("DROP TABLE test48877"); | |
| unset($dbh); | |
| --EXPECT-- | |
| bool(false) | |
| int(1) | |