From: Christopher Jones Date: Sat, 2 May 2015 01:17:34 +0000 (-0700) Subject: Export free_statement to replace php_pdo_stmt_delref which was deleted in 9fe85313095... X-Git-Tag: PRE_PHP7_NSAPI_REMOVAL~111 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be806eba8094668a743dacb0e888f1fb4a2d8227;p=php Export free_statement to replace php_pdo_stmt_delref which was deleted in 9fe853130951cff085907c0ac136edd31ec52288 along with php_pdo_stmt_addref --- 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 */