PHP 4.0 Bug #8142: on exit() from method, interbase makes a mess with transaction ids

From: Date: Wed, 06 Dec 2000 21:40:03 +0000
Subject: PHP 4.0 Bug #8142: on exit() from method, interbase makes a mess with transaction ids
Groups: php.dev 
Request: Send a blank email to php-dev+get-40258@lists.php.net to get a copy of this message
From: hp@oeri.ch Operating system: Linux 2.2.17 PHP version: 4.0.3pl1 PHP Bug Type: InterBase related Bug description: on exit() from method, interbase makes a mess with transaction ids If I exit() or die() from within a method, a begun transaction is automatically COMMITTED(!) and I get wierd errors in the http error log. <? class InterBaseFailure { var $dbh; var $trh; function InterBaseFailure() { $this->dbh = ibase_pconnect( "ibase/outerdb.gdb", "web", "pass" ); $this->trh = ibase_trans( IBASE_DEFAULT, $this->dbh ); } function Save( $num ) { ibase_query( $this->trh, "insert into dummy values ($num)" ); // now, if we exit() from here either directly or indirectly // there's a mess with the transaction handles. I get: // a) an error in the httpd log // "x is not a valid InterBase link resource // b) A COMMITTED CHANGE!!!!! exit(); } } $t = New InterBaseFailure(); $t->Save( 3 ); ?> -- Edit Bug report at: http://bugs.php.net/?id=8142&edit=1

« previous php.dev (#40258) next »