Download src/php/php-src/ext/pdo_pgsql/tests/bug81343.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 631 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_pgsql/tests/bug81343.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pdo_pgsql/tests/bug81343.phpt
-
curl -L -o bug81343.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_pgsql/tests/bug81343.phpt
631 Bytes
| --TEST-- | |
| Bug #81343 pdo_pgsql: Inconsitent boolean conversion after calling closeCursor() | |
| --EXTENSIONS-- | |
| pdo_pgsql | |
| --SKIPIF-- | |
| require __DIR__ . '/config.inc'; | |
| require __DIR__ . '/../../../ext/pdo/tests/pdo_test.inc'; | |
| PDOTest::skip(); | |
| --FILE-- | |
| require __DIR__ . '/../../../ext/pdo/tests/pdo_test.inc'; | |
| $pdo = PDOTest::test_factory(__DIR__ . '/common.phpt'); | |
| $pdo->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false); | |
| $sth = $pdo->prepare("select false where 2=?"); | |
| for ($i = 0; $i < 2; $i++) { | |
| $sth->execute([2]); | |
| var_dump($sth->fetchColumn(0)); | |
| $sth->closeCursor(); | |
| } | |
| --EXPECT-- | |
| bool(false) | |
| bool(false) | |