31 lines
655 B
PHP
31 lines
655 B
PHP
--TEST--
|
|
PDO_Firebird: Feature 72583 Fetch integers as php integers not as strings
|
|
--EXTENSIONS--
|
|
pdo_firebird
|
|
--SKIPIF--
|
|
<?php require('skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
require 'testdb.inc';
|
|
|
|
$dbh = getDbConnection();
|
|
$dbh->exec('recreate table test72583 (aint integer, asmi smallint)');
|
|
$dbh->exec('insert into test72583 values (1, -1)');
|
|
$S = $dbh->prepare('select aint, asmi from test72583');
|
|
$S->execute();
|
|
$D = $S->fetch(PDO::FETCH_NUM);
|
|
echo gettype($D[0])."\n".gettype($D[1]);
|
|
unset($S);
|
|
unset($dbh);
|
|
?>
|
|
--CLEAN--
|
|
<?php
|
|
require 'testdb.inc';
|
|
$dbh = getDbConnection();
|
|
@$dbh->exec("DROP TABLE test72583");
|
|
unset($dbh);
|
|
?>
|
|
--EXPECT--
|
|
integer
|
|
integer
|