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
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:
MUST BE VALID
Solve the problem:
31 - 12 = ?
Subscribe to this entry?

 
 [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