1--TEST--
2PDO_Firebird: Feature 72583 Fetch integers as php integers not as strings
3--SKIPIF--
4<?php if (!extension_loaded('interbase') || !extension_loaded('pdo_firebird')) die('skip'); ?>
5--FILE--
6<?php
7require 'testdb.inc';
8$C = new PDO('firebird:dbname='.$test_base, $user, $password) or die;
9@$C->exec('drop table atable');
10$C->exec('create table atable (aint integer, asmi smallint)');
11$C->exec('insert into atable values (1, -1)');
12$S = $C->prepare('select aint, asmi from atable');
13$S->execute();
14$D = $S->fetch(PDO::FETCH_NUM);
15echo gettype($D[0])."\n".gettype($D[1]);
16unset($S);
17unset($C);
18?>
19--EXPECT--
20integer
21integer
22