Download src/php/php-src/ext/pdo_firebird/tests/bug_74462.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 822 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_firebird/tests/bug_74462.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pdo_firebird/tests/bug_74462.phpt
-
curl -L -o bug_74462.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_firebird/tests/bug_74462.phpt
822 Bytes
| --TEST-- | |
| PDO_Firebird: Bug #74462 Returns only NULLs for boolean fields | |
| --EXTENSIONS-- | |
| pdo_firebird | |
| --SKIPIF-- | |
| require('skipif.inc'); | |
| --FILE-- | |
| require 'testdb.inc'; | |
| $dbh = getDbConnection(); | |
| $dbh->exec('recreate table test74462 (id integer not null, abool boolean)'); | |
| $dbh->exec('insert into test74462 (id, abool) values (1, true)'); | |
| $dbh->exec('insert into test74462 (id, abool) values (2, false)'); | |
| $dbh->exec('insert into test74462 (id, abool) values (3, null)'); | |
| $S = $dbh->query('select abool from test74462 order by id'); | |
| $D = $S->fetchAll(PDO::FETCH_COLUMN); | |
| unset($S); | |
| unset($dbh); | |
| var_dump($D); | |
| --CLEAN-- | |
| require 'testdb.inc'; | |
| $dbh = getDbConnection(); | |
| @$dbh->exec("DROP TABLE test74462"); | |
| unset($dbh); | |
| --EXPECT-- | |
| array(3) { | |
| [0]=> | |
| bool(true) | |
| [1]=> | |
| bool(false) | |
| [2]=> | |
| NULL | |
| } | |