bug_72583.phpt 539 B

123456789101112131415161718192021222324
  1. --TEST--
  2. PDO_Firebird: Feature 72583 Fetch integers as php integers not as strings
  3. --EXTENSIONS--
  4. pdo_firebird
  5. --SKIPIF--
  6. <?php require('skipif.inc'); ?>
  7. --ENV--
  8. LSAN_OPTIONS=detect_leaks=0
  9. --FILE--
  10. <?php
  11. require 'testdb.inc';
  12. $dbh->exec('recreate 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);
  17. echo gettype($D[0])."\n".gettype($D[1]);
  18. unset($S);
  19. unset($dbh);
  20. ?>
  21. --EXPECT--
  22. integer
  23. integer