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
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: 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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 23:01:28 2024 UTC