1--TEST-- 2PDO_Firebird: cursor should not be marked as opened on singleton statements 3--EXTENSIONS-- 4pdo_firebird 5--SKIPIF-- 6<?php require('skipif.inc'); ?> 7--XLEAK-- 8A bug in firebird causes a memory leak when calling `isc_attach_database()`. 9See https://github.com/FirebirdSQL/firebird/issues/7849 10--FILE-- 11<?php 12require 'testdb.inc'; 13 14$dbh = getDbConnection(); 15$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING); 16$dbh->exec('create table test_aaa (id integer)'); 17$S = $dbh->prepare('insert into test_aaa (id) values (:id) returning id'); 18$S->execute(['id' => 1]); 19$S->execute(['id' => 2]); 20unset($S); 21unset($dbh); 22echo 'OK'; 23?> 24--CLEAN-- 25<?php 26require 'testdb.inc'; 27$dbh = getDbConnection(); 28@$dbh->exec("DROP TABLE test_aaa"); 29unset($dbh); 30?> 31--EXPECT-- 32OK 33