Subject Uncaught exception 'PDOException' with message 'There is already an active trans
Author nenhumpois
Hello world,

I make this sample code:

<?php
$base_dados = blabla.fdb";
$chave = "very_confidencial";
$utilizador = "PHPUSER";
$conexao = new PDO('firebird:host=localhost;dbname=' . $base_dados, $utilizador, $chave, array(
PDO::ATTR_PERSISTENT => true
));
$conexao->exec("SET CHARACTER SET utf8");

$conexao->beginTransaction(); //line 11
?>
When executing returns:
PHP Fatal error: Uncaught exception 'PDOException' with message 'There is already an active transaction' in lixo.php:11
Stack trace:
#0 lixo.php(11): PDO->beginTransaction()
#1 {main}
thrown in lixo.php on line 11

I am using PHP 5.4.11.

How to implement transactions using the php PDO driver for Firebird?

Can anyone help me? Thank you.