php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #68961 PDO::rollBack(): Unclear sentence on autocommit mode
Submitted: 2015-01-30 16:18 UTC Modified: 2017-10-24 08:31 UTC
From: chealer at gmail dot com Assigned:
Status: Open Package: PDO related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
4 + 29 = ?
Subscribe to this entry?

 
 [2015-01-30 16:18 UTC] chealer at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/pdo.rollback
---
The second paragraph reads:

If the database was set to autocommit mode, this function will restore autocommit mode after it has rolled back the transaction. 

I am not knowledgeable on transactions and PDO autocommit mode, but I cannot make sense of that. If the database is in autocommit mode, how can the transaction be rolled back? Or in other words, which transaction would be rolled back?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-28 17:15 UTC] cmb@php.net
-Package: Documentation problem +Package: PDO Core
 [2017-10-24 08:31 UTC] kalle@php.net
-Package: PDO Core +Package: PDO related
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 22:01:32 2024 UTC