bug_aaa.phpt 556 B

123456789101112131415161718192021222324
  1. --TEST--
  2. PDO_Firebird: cursor should not be marked as opened on singleton statements
  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->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
  13. @$dbh->exec('drop table ta_table');
  14. $dbh->exec('create table ta_table (id integer)');
  15. $S = $dbh->prepare('insert into ta_table (id) values (:id) returning id');
  16. $S->execute(['id' => 1]);
  17. $S->execute(['id' => 2]);
  18. unset($S);
  19. unset($dbh);
  20. echo 'OK';
  21. ?>
  22. --EXPECT--
  23. OK