Re: PEAR::DB destructors and uncommitted transactions

From: Date: Thu, 05 Jun 2003 17:13:57 +0000
Subject: Re: PEAR::DB destructors and uncommitted transactions
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-17087@lists.php.net to get a copy of this message
On Thu Jun 05, 2003 at 02:5846PM +0200, Roman Neuhauser wrote: > Index: DB/DB/common.php > =================================================================== > RCS file: /repository/pear/DB/DB/common.php,v > retrieving revision 1.16 > diff -u -u -r1.16 common.php > +++ DB/DB/common.php 5 Jun 2003 12:50:36 -0000 > @@ -143,6 +143,19 @@ > } > > // }}} > + // {{{ destructor > + /** > + * Destructor > + */ > + function _DB_common() > + { > + $this->expectError(DB_ERROR_NOT_CAPABLE); > + $this->rollback(); > + $this->popExpect(); > + $this->_PEAR(); > + } > + > + // }}} > // {{{ quoteString() > > /** Looks fine for me. Tomas? Stig? -- - Martin Martin Jansen http://martinjansen.com/

« previous php.pear.dev (#17087) next »