From be806eba8094668a743dacb0e888f1fb4a2d8227 Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Fri, 1 May 2015 18:17:34 -0700 Subject: [PATCH] Export free_statement to replace php_pdo_stmt_delref which was deleted in 9fe853130951cff085907c0ac136edd31ec52288 along with php_pdo_stmt_addref --- ext/pdo/pdo_stmt.c | 2 +- ext/pdo/php_pdo_driver.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index 3c09609fc6..8c33b7f0e1 100644 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -2298,7 +2298,7 @@ void pdo_stmt_init(void) pdo_row_ce->serialize = pdo_row_serialize; } -static void free_statement(pdo_stmt_t *stmt) +PDO_API void free_statement(pdo_stmt_t *stmt) { if (stmt->bound_params) { zend_hash_destroy(stmt->bound_params); diff --git a/ext/pdo/php_pdo_driver.h b/ext/pdo/php_pdo_driver.h index 899208eb22..2181ba94f8 100644 --- a/ext/pdo/php_pdo_driver.h +++ b/ext/pdo/php_pdo_driver.h @@ -687,8 +687,7 @@ PDO_API void pdo_raise_impl_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, PDO_API void php_pdo_dbh_addref(pdo_dbh_t *dbh); PDO_API void php_pdo_dbh_delref(pdo_dbh_t *dbh); -PDO_API void php_pdo_stmt_addref(pdo_stmt_t *stmt); -PDO_API void php_pdo_stmt_delref(pdo_stmt_t *stmt); +PDO_API void free_statement(pdo_stmt_t *stmt); #endif /* PHP_PDO_DRIVER_H */ -- 2.40.0