summaryrefslogtreecommitdiff
path: root/ext/pdo_firebird/tests/bug_72583.phpt
blob: 87bc481fdcf8642ca3ec613aec51315755625f06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
PDO_Firebird: Feature 72583 Fetch integers as php integers not as strings
--SKIPIF--
<?php require('skipif.inc'); ?>
--FILE--
<?php
require 'testdb.inc';

@$dbh->exec('drop table atable');
$dbh->exec('create table atable (aint integer, asmi smallint)');
$dbh->exec('insert into atable values (1, -1)');
$S = $dbh->prepare('select aint, asmi from atable');
$S->execute();
$D = $S->fetch(PDO::FETCH_NUM);
echo gettype($D[0])."\n".gettype($D[1]);
unset($S);
unset($dbh);
?>
--EXPECT--
integer
integer