|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2013-06-12 04:07 UTC] ssufficool@php.net
-Summary: Commit failure for repeated transactions on repeated
PDO persistent connections
+Summary: SQLITE: Commit failure for repeated transactions on
repeated PDO persistent conn
[2014-01-01 12:28 UTC] felipe@php.net
-Package: PDO related
+Package: PDO Core
[2014-12-17 19:51 UTC] brn at macrovita dot com dot br
[2016-08-31 23:30 UTC] cmb@php.net
-Summary: SQLITE: Commit failure for repeated transactions on
repeated PDO persistent conn
+Summary: Commit failure for repeated transactions on repeated
PDO persistent conn
-Status: Open
+Status: Verified
[2016-08-31 23:30 UTC] cmb@php.net
[2016-09-01 21:46 UTC] cmb@php.net
-Summary: Commit failure for repeated transactions on repeated
PDO persistent conn
+Summary: Commit failure for repeated persistent connection
[2016-09-01 22:32 UTC] cmb@php.net
-Status: Verified
+Status: Analyzed
[2016-09-01 22:32 UTC] cmb@php.net
[2017-10-24 08:29 UTC] kalle@php.net
-Package: PDO Core
+Package: PDO related
[2021-06-10 10:42 UTC] cmb@php.net
[2021-06-10 12:12 UTC] nikic@php.net
[2021-06-10 13:32 UTC] cmb@php.net
[2021-06-14 09:03 UTC] nikic@php.net
[2022-06-10 03:57 UTC] dadodi3768 at musezoo dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 09:00:01 2025 UTC |
Description: ------------ Repeated transaction on repeated persistent PDO connection fails on commit with 'There is no active transaction'. Reproduced on: - Fedora 14 32bit PHP 5.3.6 - Gentoo 64bit PHP 5.3.14 We'll work around the bug in application code, but we thought developers might like to know about this. // BTM5282 Test script: --------------- # Should work, but does not: cat <<'EOD' | php -d display_errors=1 && echo OK <?php $db = new PDO('sqlite::memory:', '', '', array(PDO::ATTR_PERSISTENT => true)); $db->beginTransaction(); $st = $db->query('select 1'); echo $st->fetchColumn()."\n"; $db->commit(); //$st = null; $db = new PDO('sqlite::memory:', '', '', array(PDO::ATTR_PERSISTENT => true)); $db->beginTransaction(); $st = $db->query('select 2'); echo $st->fetchColumn()."\n"; $db->commit(); EOD # INTERESTING? -> Works OK with uncommented $st = null; # Works OK with PDO::ATTR_PERSISTENT => false . Expected result: ---------------- 1 2 OK Actual result: -------------- Fatal error: Uncaught exception 'PDOException' with message 'There is no active transaction' in -:11 ...