mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
couple of conceptual errors here
This commit is contained in:
parent
0638c657e1
commit
f124c2086e
1 changed files with 2 additions and 3 deletions
|
@ -1116,11 +1116,10 @@ static void dbh_free(pdo_dbh_t *dbh TSRMLS_DC)
|
||||||
|
|
||||||
static void pdo_dbh_free_storage(pdo_dbh_t *dbh TSRMLS_DC)
|
static void pdo_dbh_free_storage(pdo_dbh_t *dbh TSRMLS_DC)
|
||||||
{
|
{
|
||||||
if (dbh->methods->rollback) {
|
if (dbh->methods && dbh->methods->rollback) {
|
||||||
/* roll back transactions, that are possibly nested, even though we don't
|
/* roll back transactions, that are possibly nested, even though we don't
|
||||||
* official support them */
|
* official support them */
|
||||||
while (dbh->methods->rollback(dbh TSRMLS_CC))
|
dbh->methods->rollback(dbh TSRMLS_CC);
|
||||||
;
|
|
||||||
dbh->in_txn = 0;
|
dbh->in_txn = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue