ext/pdo: Add static modifier for PDORow object handlers

This commit is contained in:
Gina Peter Banyard 2025-01-30 19:44:29 +00:00
parent 9040e795ed
commit 481bafe943
2 changed files with 2 additions and 4 deletions

View file

@ -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);

View file

@ -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);