diff options
author | Wez Furlong <wez@php.net> | 2005-10-27 03:51:23 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2005-10-27 03:51:23 +0000 |
commit | dcd78795566cbf4eacd46f9e4221d3ddf2b57524 (patch) | |
tree | 3557452c887795e88cc2564c51741fb59bbee803 | |
parent | 97ec02ce819d77c14dc9bcb1a49182b0a26cccd6 (diff) | |
download | php-git-dcd78795566cbf4eacd46f9e4221d3ddf2b57524.tar.gz |
fixes PECL Bug #5589
-rwxr-xr-x | ext/pdo/pdo_dbh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c index da00971760..8acf8eb010 100755 --- a/ext/pdo/pdo_dbh.c +++ b/ext/pdo/pdo_dbh.c @@ -1384,7 +1384,7 @@ static void pdo_dbh_free_storage(pdo_dbh_t *dbh TSRMLS_DC) if (!dbh->is_persistent) { dbh_free(dbh TSRMLS_CC); - } else if (dbh->methods->persistent_shutdown) { + } else if (dbh->methods && dbh->methods->persistent_shutdown) { dbh->methods->persistent_shutdown(dbh TSRMLS_CC); } } |