php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31498 Transactions broken with upgrade from 5.0.2 to 5.0.3
Submitted: 2005-01-11 22:46 UTC Modified: 2005-01-12 17:49 UTC
From: jj at intelequest dot com Assigned:
Status: Closed Package: MSSQL related
PHP Version: 5.0.3 OS: Windows XP / 2k3
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: jj at intelequest dot com
New email:
PHP Version: OS:

 

 [2005-01-11 22:46 UTC] jj at intelequest dot com
Description:
------------
When passing the "begin tran", "rollback tran" or "commit tran" methods the process dies on exectuing $this->query("begin tran"); 

If you port the platform back to 5.0.2 everything runs fine.



Reproduce code:
---------------
mssql_query('begin tran');
$result = mssql_query('insert into table_name (fname, lname) values ('joe', 'bob')');
if(!$result)
{
mssql_query('rollback tran');
}

mssql_query('commit tran');

Expected result:
----------------
To run the main query and rollback the transaction if the query failed .

Actual result:
--------------
Stops on the begin tran and processes nothing else.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-12 09:06 UTC] derick@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip
 [2005-01-12 17:49 UTC] jj at intelequest dot com
Issue is corrected with PHP 5.0.4-dev (cli) (built: Jan 12 2005 10:23:43).
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Dec 10 10:04:15 2022 UTC