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
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:
42 - 13 = ?
Subscribe to this entry?

 
 [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: Fri Dec 06 14:01:27 2024 UTC