From 9f4390ce8b47425bd39121f77dc4a6edeb658d13 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Sat, 19 Nov 2005 16:39:47 +0000 Subject: [PATCH] fix #35293 (PDO segfaults when using persistent connections) --- ext/pdo/pdo_dbh.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.50.1