1--TEST--
2PDO_Firebird: Feature 72583 Fetch integers as php integers not as strings
3--SKIPIF--
4<?php require('skipif.inc'); ?>
5--ENV--
6LSAN_OPTIONS=detect_leaks=0
7--FILE--
8<?php
9require 'testdb.inc';
10
11@$dbh->exec('drop table atable');
12$dbh->exec('create table atable (aint integer, asmi smallint)');
13$dbh->exec('insert into atable values (1, -1)');
14$S = $dbh->prepare('select aint, asmi from atable');
15$S->execute();
16$D = $S->fetch(PDO::FETCH_NUM);
17echo gettype($D[0])."\n".gettype($D[1]);
18unset($S);
19unset($dbh);
20?>
21--EXPECT--
22integer
23integer
24