mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
ext/pdo: Add static modifier for PDORow object handlers
This commit is contained in:
parent
9040e795ed
commit
481bafe943
2 changed files with 2 additions and 4 deletions
|
@ -2369,7 +2369,7 @@ static zval *pdo_row_get_property_ptr_ptr(zend_object *object, zend_string *name
|
||||||
return NULL;
|
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);
|
pdo_row_t *row = php_pdo_row_fetch_object(std);
|
||||||
if (row->stmt) {
|
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);
|
pdo_row_t *row = zend_object_alloc(sizeof(pdo_row_t), ce);
|
||||||
zend_object_std_init(&row->std, ce);
|
zend_object_std_init(&row->std, ce);
|
||||||
|
|
|
@ -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,
|
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);
|
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 const zend_function_entry pdo_row_functions[];
|
||||||
extern zend_class_entry *pdo_row_ce;
|
extern zend_class_entry *pdo_row_ce;
|
||||||
void pdo_row_free_storage(zend_object *std);
|
|
||||||
extern zend_object_handlers pdo_row_object_handlers;
|
extern zend_object_handlers pdo_row_object_handlers;
|
||||||
|
|
||||||
zend_object_iterator *php_pdo_dbstmt_iter_get(zend_class_entry *ce, zval *object);
|
zend_object_iterator *php_pdo_dbstmt_iter_get(zend_class_entry *ce, zval *object);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue