diff options
author | Wez Furlong <wez@php.net> | 2005-02-13 03:26:43 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2005-02-13 03:26:43 +0000 |
commit | 1051e7076f15359c7affcafec860ab99e755c1a3 (patch) | |
tree | 3253b03a7f0220df94c7689a8aae8c1d7f419c3f /ext | |
parent | 0aa82c3c8375325445514623b24d7c0046f1dcc8 (diff) | |
download | php-git-1051e7076f15359c7affcafec860ab99e755c1a3.tar.gz |
Fixes the crash part of PECL Bug #3434.
Diffstat (limited to 'ext')
-rwxr-xr-x | ext/pdo/pdo_dbh.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 */ |