MDB $this->in_transaction
| From: | Jeroen Houben | Date: | Thu, 30 Oct 2003 15:11:26 +0000 |
| Subject: | MDB $this->in_transaction | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-23141@lists.php.net to get a copy of this message | ||
Hi,
In version 1.3 of MDB I encountered the following:
/**
* @var boolean
* @access private
*/
var $in_transaction = 0;
Most of the times this won't cause any problems but the following will (I think!):
if ($mdb->in_transaction === true) {
$mdb->rollback();
}
While I'm on the topic. The inline docs (see above) say this method is private put it's not prefixed with an _underscore. I would like to have public access to the variable, either directly or through an isIntransaction() method perhaps. Can I just keep accessing it directly or will it become a private var in future versions?
regards,
jeroen