php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52128 odbc_autocommit still broken
Submitted: 2010-06-20 18:21 UTC Modified: 2010-06-21 00:24 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: dirkydirk at gmx dot net Assigned:
Status: Not a bug Package: ODBC related
PHP Version: 5.3.2 OS: Debian Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dirkydirk at gmx dot net
New email:
PHP Version: OS:

 

 [2010-06-20 18:21 UTC] dirkydirk at gmx dot net
Description:
------------
As reported in bug #49429 [2009-11-24 10:45 UTC] kristoff dot picard at ingres dot com, odbc_autocommit($conn, false) still calls SQLGetConnectOption instead of Set. Transactions are unusable.

Also, is the value correct?

PHP 5.3.2-1 with Suhosin-Patch (cli) (built: Mar 14 2010 00:09:57) (Debian sid package)

Test script:
---------------
Snippet from ODBC trace:

odbc_autocommit($conn, false)
------------------------------
[ODBC][1127][1277050497.141639][SQLGetConnectOption.c][222]
		Entry:            
			Connection = 0x2c5c6d0            
			Option = SQL_ATTR_AUTOCOMMIT            
			Value = 0x7fff8566234c
[ODBC][1127][1277050497.141681][SQLGetConnectOption.c][502]
		Exit:[SQL_SUCCESS]

-----------------------------
odbc_autocommit($conn, true)
-----------------------------
[ODBC][1127][1277050497.152906][SQLSetConnectOption.c][262]
		Entry:            
			Connection = 0x2c5c6d0            
			Option = SQL_ATTR_AUTOCOMMIT            
			Value = 1
[ODBC][1127][1277050497.153191][SQLSetConnectOption.c][525]
		Exit:[SQL_SUCCESS]





Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-21 00:24 UTC] felipe@php.net
-Status: Open +Status: Bogus
 [2010-06-21 00:24 UTC] felipe@php.net
The fix was in the PHP 5.3.3 RC1.
 [2010-06-21 00:24 UTC] felipe@php.net
The fix was in the PHP 5.3.3 RC1.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 23:01:34 2024 UTC