Re: com php-src: 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 ext/pdo/php_pdo_driver.h
| From: | Nikita Popov | Date: | Sat, 02 May 2015 08:16:43 +0000 |
| Subject: | Re: com php-src: 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 ext/pdo/php_pdo_driver.h |
||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-86575@lists.php.net to get a copy of this message | ||
On Sat, May 2, 2015 at 3:17 AM, Christopher Jones <sixd@php.net> wrote:
> Commit: be806eba8094668a743dacb0e888f1fb4a2d8227
> Author: Christopher Jones <christopher.jones@oracle.com> Fri,
> 1 May 2015 18:17:34 -0700
> Parents: 98fe9405e26ae7aa25592557ef92d238ba34ff51
> Branches: master
>
> Link:
>
> http://git.php.net/?p=php-src.git;a=commitdiff;h=be806eba8094668a743dacb0e888f1fb4a2d8227
>
> Log:
> Export free_statement to replace php_pdo_stmt_delref which was deleted in
> 9fe853130951cff085907c0ac136edd31ec52288 along with php_pdo_stmt_addref
>
> Changed paths:
> M ext/pdo/pdo_stmt.c
> M ext/pdo/php_pdo_driver.h
>
>
> Diff:
> diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c
> index 3c09609..8c33b7f 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 899208e..2181ba9 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);
>
Please add a php_pdo prefix to this function if we're going to export it.
Nikita