cvs: php-src /ext/pdo pdo_dbh.c
| From: | Antony Dovgal | Date: | Sat, 19 Nov 2005 16:39:49 +0000 |
| Subject: | cvs: php-src /ext/pdo pdo_dbh.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-35267@lists.php.net to get a copy of this message | ||
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);