|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-01-11 16:53 UTC] lobbin@php.net
[2002-02-02 06:41 UTC] sander@php.net
[2003-08-16 11:18 UTC] abies@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 18:00:01 2025 UTC |
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 ); ?>