mirror of
https://github.com/php/php-src.git
synced 2025-01-10 21:14:37 +08:00
fix #35293 (PDO segfaults when using persistent connections)
This commit is contained in:
parent
ef53177e27
commit
9f4390ce8b
@ -341,6 +341,8 @@ static PHP_METHOD(PDO, dbh_constructor)
|
||||
if (pdbh) {
|
||||
/* let's copy the emalloc bits over from the other handle */
|
||||
pdbh->ce = dbh->ce;
|
||||
pdbh->def_stmt_ce = dbh->def_stmt_ce;
|
||||
pdbh->def_stmt_ctor_args = dbh->def_stmt_ctor_args;
|
||||
pdbh->properties = dbh->properties;
|
||||
/* kill the non-persistent thingamy */
|
||||
efree(dbh);
|
||||
|
Loading…
Reference in New Issue
Block a user