From 481bafe943f101612e2511e916a89795684b0713 Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Thu, 30 Jan 2025 19:44:29 +0000 Subject: [PATCH] ext/pdo: Add static modifier for PDORow object handlers --- ext/pdo/pdo_stmt.c | 4 ++-- ext/pdo/php_pdo_int.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index 0b779f65627..824922b7e1a 100644 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -2369,7 +2369,7 @@ static zval *pdo_row_get_property_ptr_ptr(zend_object *object, zend_string *name return NULL; } -void pdo_row_free_storage(zend_object *std) +static void pdo_row_free_storage(zend_object *std) { pdo_row_t *row = php_pdo_row_fetch_object(std); if (row->stmt) { @@ -2378,7 +2378,7 @@ void pdo_row_free_storage(zend_object *std) } } -zend_object *pdo_row_new(zend_class_entry *ce) +static zend_object *pdo_row_new(zend_class_entry *ce) { pdo_row_t *row = zend_object_alloc(sizeof(pdo_row_t), ce); zend_object_std_init(&row->std, ce); diff --git a/ext/pdo/php_pdo_int.h b/ext/pdo/php_pdo_int.h index 13c2e3d9431..e8befe9f819 100644 --- a/ext/pdo/php_pdo_int.h +++ b/ext/pdo/php_pdo_int.h @@ -42,10 +42,8 @@ bool pdo_stmt_describe_columns(pdo_stmt_t *stmt); bool pdo_stmt_setup_fetch_mode(pdo_stmt_t *stmt, zend_long mode, uint32_t mode_arg_num, zval *args, uint32_t variadic_num_args); -extern zend_object *pdo_row_new(zend_class_entry *ce); extern const zend_function_entry pdo_row_functions[]; extern zend_class_entry *pdo_row_ce; -void pdo_row_free_storage(zend_object *std); extern zend_object_handlers pdo_row_object_handlers; zend_object_iterator *php_pdo_dbstmt_iter_get(zend_class_entry *ce, zval *object);