MFH: fix #35293 (PDO segfaults when using persistent connections)

This commit is contained in:
Antony Dovgal 2005-11-19 16:41:08 +00:00
parent 60949ca571
commit 493c9fcf93
2 changed files with 3 additions and 0 deletions

1
NEWS
View File

@ -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)

View File

@ -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);