Bug #12513: Automatic Rollback of open transactions in persistent links

From: Date: Wed, 01 Aug 2001 13:06:41 +0000
Subject: Bug #12513: Automatic Rollback of open transactions in persistent links
Groups: php.dev 
Request: Send a blank email to php-dev+get-61747@lists.php.net to get a copy of this message
From:             t.stinner@billiton.de
Operating system: Linux
PHP version:      4.0.6
PHP Bug Type:     MySQL related
Bug description:  Automatic Rollback of open transactions in persistent links

When using mysql_pconnect() the connection to the database (abviously)
persists.

This has the site-effect that open transactions at the end of the page
request remain open if you do not explicitly commit/rollback the
transaction.

This can happen very easily if you have an error in your script.

The Postgres driver does an automatic rollback at request shutdown, the
mysql driver should do the same.
-- 
Edit bug report at: http://bugs.php.net/?id=12513&edit=1



Thread (2 messages)

« previous php.dev (#61747) next »