|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-07-06 15:18 UTC] cmb@php.net
[2021-07-06 15:34 UTC] shariefjamiel at gmail dot com
[2021-07-07 17:25 UTC] cmb@php.net
[2024-05-20 11:59 UTC] git@php.net
[2024-05-20 11:59 UTC] git@php.net
-Status: Open
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 07:00:01 2025 UTC |
Description: ------------ Using PHP 8.0.1 on Ubuntu 20.04 focal I am executing `BEGIN EXCLUSIVE TRANSACTION` due to a locking issue, but the problem is PDO::inTransaction returns false despite being in a transaction, which leads to errors later on. Test script: --------------- $db->exec("BEGIN EXCLUSIVE TRANSACTION"); $alwaysFalse = $db->inTransaction(); Expected result: ---------------- $db->exec("BEGIN EXCLUSIVE TRANSACTION"); $shouldBeTrue = $db->inTransaction(); Actual result: -------------- $db->exec("BEGIN EXCLUSIVE TRANSACTION"); $false = $db->inTransaction();