tony2001 Sat Nov 19 11:39:49 2005 EDT Modified files: /php-src/ext/pdo pdo_dbh.c Log: fix #35293 (PDO segfaults when using persistent connections) http://cvs.php.net/diff.php/php-src/ext/pdo/pdo_dbh.c?r1=1.99&r2=1.100&ty=u Index: php-src/ext/pdo/pdo_dbh.c diff -u php-src/ext/pdo/pdo_dbh.c:1.99 php-src/ext/pdo/pdo_dbh.c:1.100 --- php-src/ext/pdo/pdo_dbh.c:1.99 Wed Oct 12 08:13:50 2005 +++ php-src/ext/pdo/pdo_dbh.c Sat Nov 19 11:39:47 2005 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pdo_dbh.c,v 1.99 2005/10/12 12:13:50 dmitry Exp $ */ +/* $Id: pdo_dbh.c,v 1.100 2005/11/19 16:39:47 tony2001 Exp $ */ /* The PDO Database Handle Class */ @@ -341,6 +341,8 @@ 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);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php