mirror of
https://github.com/php/php-src.git
synced 2025-01-19 18:24:15 +08:00
equivalent segv/shutdown fix for failed connect
This commit is contained in:
parent
d6bfe18b20
commit
d5923d9121
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user