mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
24 lines
556 B
PHP
24 lines
556 B
PHP
--TEST--
|
|
PDO_Firebird: cursor should not be marked as opened on singleton statements
|
|
--EXTENSIONS--
|
|
pdo_firebird
|
|
--SKIPIF--
|
|
<?php require('skipif.inc'); ?>
|
|
--ENV--
|
|
LSAN_OPTIONS=detect_leaks=0
|
|
--FILE--
|
|
<?php
|
|
require 'testdb.inc';
|
|
|
|
$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
|
|
@$dbh->exec('drop table ta_table');
|
|
$dbh->exec('create table ta_table (id integer)');
|
|
$S = $dbh->prepare('insert into ta_table (id) values (:id) returning id');
|
|
$S->execute(['id' => 1]);
|
|
$S->execute(['id' => 2]);
|
|
unset($S);
|
|
unset($dbh);
|
|
echo 'OK';
|
|
?>
|
|
--EXPECT--
|
|
OK
|