]> granicus.if.org Git - php/commitdiff
Add UPGRADING note for PDO::inTransaction()
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 25 Nov 2020 16:28:23 +0000 (17:28 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 25 Nov 2020 16:28:23 +0000 (17:28 +0100)
[ci skip]

UPGRADING

index bf41814ee1781f1ebdfbfee38977374f3f201241..3ffcd8fd43f2975695282d1e266bd09a272c60e7 100644 (file)
--- a/UPGRADING
+++ b/UPGRADING
@@ -443,6 +443,12 @@ PHP 8.0 UPGRADE NOTES
             string $statement, ?int $fetch_mode = null, ...$fetch_mode_args)
         PDOStatement::setFetchMode(int $mode, ...$params)
 
+- PDO MySQL:
+  . PDO::inTransaction() now reports the actual transaction state of the
+    connection, rather than an approximation maintained by PDO. If a query that
+    is subject to "implicit commit" is executed, PDO::inTransaction() will
+    subsequently return false, as a transaction is no longer active.
+
 - PDO_ODBC:
   . The php.ini directive pdo_odbc.db2_instance_name has been removed