Skip to content

Commit 481bafe

Browse files
committed
ext/pdo: Add static modifier for PDORow object handlers
1 parent 9040e79 commit 481bafe

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

ext/pdo/pdo_stmt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2369,7 +2369,7 @@ static zval *pdo_row_get_property_ptr_ptr(zend_object *object, zend_string *name
23692369
return NULL;
23702370
}
23712371

2372-
void pdo_row_free_storage(zend_object *std)
2372+
static void pdo_row_free_storage(zend_object *std)
23732373
{
23742374
pdo_row_t *row = php_pdo_row_fetch_object(std);
23752375
if (row->stmt) {
@@ -2378,7 +2378,7 @@ void pdo_row_free_storage(zend_object *std)
23782378
}
23792379
}
23802380

2381-
zend_object *pdo_row_new(zend_class_entry *ce)
2381+
static zend_object *pdo_row_new(zend_class_entry *ce)
23822382
{
23832383
pdo_row_t *row = zend_object_alloc(sizeof(pdo_row_t), ce);
23842384
zend_object_std_init(&row->std, ce);

ext/pdo/php_pdo_int.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,8 @@ bool pdo_stmt_describe_columns(pdo_stmt_t *stmt);
4242
bool pdo_stmt_setup_fetch_mode(pdo_stmt_t *stmt, zend_long mode, uint32_t mode_arg_num,
4343
zval *args, uint32_t variadic_num_args);
4444

45-
extern zend_object *pdo_row_new(zend_class_entry *ce);
4645
extern const zend_function_entry pdo_row_functions[];
4746
extern zend_class_entry *pdo_row_ce;
48-
void pdo_row_free_storage(zend_object *std);
4947
extern zend_object_handlers pdo_row_object_handlers;
5048

5149
zend_object_iterator *php_pdo_dbstmt_iter_get(zend_class_entry *ce, zval *object);

0 commit comments

Comments
 (0)