From: Antony Dovgal Date: Sat, 19 Nov 2005 16:39:47 +0000 (+0000) Subject: fix #35293 (PDO segfaults when using persistent connections) X-Git-Tag: RELEASE_2_0_2~163 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f4390ce8b47425bd39121f77dc4a6edeb658d13;p=php fix #35293 (PDO segfaults when using persistent connections) --- diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c index 2e133da5a3..818c49dc27 100755 --- a/ext/pdo/pdo_dbh.c +++ b/ext/pdo/pdo_dbh.c @@ -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);