From: jj at intelequest dot com
Operating system: Windows XP / 2k3
PHP version: 5.0.3
PHP Bug Type: MSSQL related
Bug description: Transactions broken with upgrade from 5.0.2 to 5.0.3
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 bug report at http://bugs.php.net/?id=31498&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31498&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=31498&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=31498&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31498&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31498&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31498&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31498&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31498&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31498&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31498&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=31498&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=31498&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31498&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31498&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31498&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31498&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31498&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31498&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31498&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31498&r=mysqlcfg