|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38072 autocommit(FALSE) is not working.
Submitted: 2006-07-11 21:30 UTC Modified: 2006-07-12 09:51 UTC
From: canipe_chris at yahoo dot com Assigned:
Status: Closed Package: MySQLi related
PHP Version: 5.1.4 OS: SunOS 5.8
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 !
Your email address:
Solve the problem:
27 - 23 = ?
Subscribe to this entry?

 [2006-07-11 21:30 UTC] canipe_chris at yahoo dot com
Using autocommit(FALSE) on a mysqli object does not turn autocommit off. There is more information at the URL listed under "Reproduce code."

Reproduce code:

Expected result:
I expect the result to be "Autocommit is 1 Autocommit is 0".

Actual result:
The actual result is "Autocommit is 1 Autocommit is 1".


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-07-11 23:12 UTC]
Please try using this CVS snapshot:
For Windows:

Works just fine here.
 [2006-07-12 02:17 UTC] canipe_chris at yahoo dot com

I do not have a Sun machine at home, and I am unable to make this request at my place of work at the moment. For now, I'll use the work-around of mysqli->query('set autocommit = 0').

I was fairly certain this wasn't a bug since it worked in Windows; however, my search for why this was happening turned up empty handed. Is there anything in the php.ini, my.cnf, or configure that might affect autocommit, or does mysqli work "out of the box"?

Thanks for your time.
 [2006-07-12 09:51 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Sep 27 00:03:38 2021 UTC