equivalent segv/shutdown fix for failed connect

This commit is contained in:
Wez Furlong 2004-07-28 00:15:19 +00:00
parent d6bfe18b20
commit d5923d9121

View File

@ -338,6 +338,7 @@ static int pdo_pgsql_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_
ret = 1;
cleanup:
dbh->methods = &pgsql_methods;
if (!ret) {
pgsql_handle_closer(dbh TSRMLS_CC);
}