--TEST-- PDO_Firebird: Feature 72583 Fetch integers as php integers not as strings --EXTENSIONS-- pdo_firebird --SKIPIF-- --XLEAK-- A bug in firebird causes a memory leak when calling `isc_attach_database()`. See https://github.com/FirebirdSQL/firebird/issues/7849 --FILE-- 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-- exec("DROP TABLE test72583"); unset($dbh); ?> --EXPECT-- integer integer