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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 15:01:34 2025 UTC