From 1051e7076f15359c7affcafec860ab99e755c1a3 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 13 Feb 2005 03:26:43 +0000 Subject: [PATCH] Fixes the crash part of PECL Bug #3434. --- ext/pdo/pdo_dbh.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c index 88c4d43b1d..3a4fbe3e00 100755 --- a/ext/pdo/pdo_dbh.c +++ b/ext/pdo/pdo_dbh.c @@ -406,6 +406,7 @@ static PHP_METHOD(PDO, prepare) stmt->query_string = estrndup(statement, statement_len); stmt->query_stringlen = statement_len; stmt->default_fetch_type = PDO_FETCH_BOTH; + stmt->dbh = dbh; if (dbh->methods->preparer(dbh, statement, statement_len, stmt, driver_options TSRMLS_CC)) { /* prepared; create a statement object for PHP land to access it */ -- 2.40.0