Download src/php/php-src/ext/pdo_pgsql/tests/gh7723.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 849 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_pgsql/tests/gh7723.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pdo_pgsql/tests/gh7723.phpt
-
curl -L -o gh7723.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_pgsql/tests/gh7723.phpt
849 Bytes
| --TEST-- | |
| GitHub #7723 (Fix error message allocation of PDO PgSQL) | |
| --EXTENSIONS-- | |
| pdo_pgsql | |
| --SKIPIF-- | |
| require __DIR__ . '/../../../ext/pdo/tests/pdo_test.inc'; | |
| require __DIR__ . '/config.inc'; | |
| PDOTest::skip(); | |
| --FILE-- | |
| require __DIR__ . '/../../../ext/pdo/tests/pdo_test.inc'; | |
| require __DIR__ . '/config.inc'; | |
| $db = PDOTest::test_factory(__DIR__ . '/common.phpt'); | |
| $db->setAttribute(PDO::ATTR_PERSISTENT, true); | |
| $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | |
| $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); | |
| $st = $db->prepare('select 1'); | |
| for ($i = 0; ++$i <= 2;) { | |
| try { | |
| $st->bindValue(':invalid', $i); | |
| } catch (PDOException $e) { | |
| echo $e->getMessage() . "\n"; | |
| } | |
| } | |
| --EXPECT-- | |
| SQLSTATE[HY093]: Invalid parameter number: :invalid | |
| SQLSTATE[HY093]: Invalid parameter number: :invalid | |