From: Wez Furlong Date: Sun, 13 Feb 2005 03:26:43 +0000 (+0000) Subject: Fixes the crash part of PECL Bug #3434. X-Git-Tag: RELEASE_0_2_3~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1051e7076f15359c7affcafec860ab99e755c1a3;p=php Fixes the crash part of PECL Bug #3434. --- 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 */