1--TEST--
2PDO_Firebird: Feature 72583 Fetch integers as php integers not as strings
3--EXTENSIONS--
4pdo_firebird
5--SKIPIF--
6<?php require('skipif.inc'); ?>
7--XLEAK--
8A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9See https://github.com/FirebirdSQL/firebird/issues/7849
10--FILE--
11<?php
12require 'testdb.inc';
13
14$dbh = getDbConnection();
15$dbh->exec('recreate table test72583 (aint integer, asmi smallint)');
16$dbh->exec('insert into test72583 values (1, -1)');
17$S = $dbh->prepare('select aint, asmi from test72583');
18$S->execute();
19$D = $S->fetch(PDO::FETCH_NUM);
20echo gettype($D[0])."\n".gettype($D[1]);
21unset($S);
22unset($dbh);
23?>
24--CLEAN--
25<?php
26require 'testdb.inc';
27$dbh = getDbConnection();
28@$dbh->exec("DROP TABLE test72583");
29unset($dbh);
30?>
31--EXPECT--
32integer
33integer
34