From: Antony Dovgal Date: Sat, 19 Nov 2005 16:41:08 +0000 (+0000) Subject: MFH: fix #35293 (PDO segfaults when using persistent connections) X-Git-Tag: php-5.1.0~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=493c9fcf932feb25a12235a6508ae1b8d52852d1;p=php MFH: fix #35293 (PDO segfaults when using persistent connections) --- diff --git a/NEWS b/NEWS index 8d4e021e8c..c4aaaf5114 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? Nov 2005, PHP 5.1 +- FIxed bug #35293 (PDO segfaults when using persistent connections). (Tony) - Fixed bug #35278 (Multiple virtual() calls crash Apache 2 php module). (Ilia) - Fixed bug #35273 (Error in mapping soap - java types). (Dmitry) - Fixed bug #33153 (crash in mssql_next result). (Frank) diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c index 8acf8eb010..12d0489877 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);