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--ENV--
8LSAN_OPTIONS=detect_leaks=0
9--FILE--
10<?php
11require 'testdb.inc';
12
13$dbh->exec('recreate table atable (aint integer, asmi smallint)');
14$dbh->exec('insert into atable values (1, -1)');
15$S = $dbh->prepare('select aint, asmi from atable');
16$S->execute();
17$D = $S->fetch(PDO::FETCH_NUM);
18echo gettype($D[0])."\n".gettype($D[1]);
19unset($S);
20unset($dbh);
21?>
22--EXPECT--
23integer
24integer
25