PHP 4.0 Bug #9662: odbc_connect() acts like odbc_pconnect()

From: Date: Fri, 09 Mar 2001 18:44:37 +0000
Subject: PHP 4.0 Bug #9662: odbc_connect() acts like odbc_pconnect()
Groups: php.dev 
Request: Send a blank email to php-dev+get-48444@lists.php.net to get a copy of this message
From: cpoirier@shelluser.net Operating system: Windows 98 PHP version: 4.0.4pl1 PHP Bug Type: ODBC related Bug description: odbc_connect() acts like odbc_pconnect() I think this may be intentional -- there was a comment that could have been to that effect in the code. However, it has the side effect of breaking transaction management. The code here is an approximation of the results that I was seeing -- I don't guarantee it will run, but you'll get the idea... <?php $connection1 = odbc_connect( "X", "", "" ); $connection2 = odbc_connect( "X", "", "" ); odbc_exec( $connection1, "insert into Table values (1) ); odbc_exec( $connection2, "insert into Table values (2) ); odbc_commit( $connection1 ); odbc_rollback( $connection2 ); odbc_close( $connection1 ); odbc_close( $connection2 ); ?> Table contains rows: 1 2 -- Edit Bug report at: http://bugs.php.net/?id=9662&edit=1

« previous php.dev (#48444) next »