1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 00:48:25 +02:00
Files
archived-php-src/ext/pdo
Nikita Popov 8effbd1cb0 PDO: Respect connection transaction state for dtor rollback
As mentioned in bug #80949, if a transaction is implicitly
committed, then PDO may still issue a ROLLBACK when the PDO
object is destroyed, as the transaction is still marked as active
in PDO's (inaccurate) transaction emulation.

Make sure we use the connection transaction state also for that
final ROLLBACK. A caveat here is that the connection might have
been dropped already, which may be the case for some drivers if
construction fails. Make sure we don't crash in that case.
2021-04-12 12:39:44 +02:00
..
2020-12-10 16:53:08 +01:00
2021-02-09 22:38:06 +01:00
2020-10-05 15:51:36 +02:00
2020-10-05 15:51:36 +02:00
2020-12-10 16:53:08 +01:00
2020-12-16 15:17:13 +01:00
2021-02-09 22:38:06 +01:00