summaryrefslogtreecommitdiff
path: root/ext/pdo/pdo_dbh.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pdo/pdo_dbh.c')
-rw-r--r--ext/pdo/pdo_dbh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c
index 651015106d..3e0c7e67e2 100644
--- a/ext/pdo/pdo_dbh.c
+++ b/ext/pdo/pdo_dbh.c
@@ -575,7 +575,7 @@ static PHP_METHOD(PDO, prepare)
stmt->default_fetch_type = dbh->default_fetch_type;
stmt->dbh = dbh;
/* give it a reference to me */
- Z_ADDREF_P(getThis() TSRMLS_CC);
+ Z_ADDREF_P(getThis());
php_pdo_dbh_addref(dbh TSRMLS_CC);
ZVAL_COPY_VALUE(&stmt->database_object_handle, getThis());
/* we haven't created a lazy object yet */