#31498 [Opn->Fbk]: Transactions broken with upgrade from 5.0.2 to 5.0.3

From: Date: Wed, 12 Jan 2005 08:06:34 +0000
Subject: #31498 [Opn->Fbk]: Transactions broken with upgrade from 5.0.2 to 5.0.3
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-71925@lists.php.net to get a copy of this message
ID: 31498 Updated by: derick@php.net Reported By: jj at intelequest dot com -Status: Open +Status: Feedback Bug Type: MSSQL related Operating System: Windows XP / 2k3 PHP Version: 5.0.3 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2005-01-11 22:46:19] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31498&edit=1

« previous php.bugs (#71925) next »