Download src/php/php-src/ext/pdo_firebird/tests/bug_72583.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 655 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_firebird/tests/bug_72583.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pdo_firebird/tests/bug_72583.phpt
-
curl -L -o bug_72583.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_firebird/tests/bug_72583.phpt
655 Bytes
| --TEST-- | |
| PDO_Firebird: Feature 72583 Fetch integers as php integers not as strings | |
| --EXTENSIONS-- | |
| pdo_firebird | |
| --SKIPIF-- | |
| require('skipif.inc'); | |
| --FILE-- | |
| require 'testdb.inc'; | |
| $dbh = getDbConnection(); | |
| $dbh->exec('recreate table test72583 (aint integer, asmi smallint)'); | |
| $dbh->exec('insert into test72583 values (1, -1)'); | |
| $S = $dbh->prepare('select aint, asmi from test72583'); | |
| $S->execute(); | |
| $D = $S->fetch(PDO::FETCH_NUM); | |
| echo gettype($D[0])."\n".gettype($D[1]); | |
| unset($S); | |
| unset($dbh); | |
| --CLEAN-- | |
| require 'testdb.inc'; | |
| $dbh = getDbConnection(); | |
| @$dbh->exec("DROP TABLE test72583"); | |
| unset($dbh); | |
| --EXPECT-- | |
| integer | |
| integer | |