@@ -114,8 +114,8 @@ static int describe_columns(pdo_stmt_t *stmt TSRMLS_DC)
114
114
115
115
static void param_dtor (void * data )
116
116
{
117
- TSRMLS_FETCH ();
118
117
struct pdo_bound_param_data * param = (struct pdo_bound_param_data * )data ;
118
+ TSRMLS_FETCH ();
119
119
120
120
/* tell the driver that it is going away */
121
121
if (param -> stmt -> methods -> param_hook ) {
@@ -179,9 +179,9 @@ static int really_register_bound_param(struct pdo_bound_param_data *param, pdo_s
179
179
180
180
if (param -> name ) {
181
181
param -> name = estrndup (param -> name , param -> namelen );
182
- zend_hash_update (hash , param -> name , param -> namelen , param , sizeof (* param ), & pparam );
182
+ zend_hash_update (hash , param -> name , param -> namelen , param , sizeof (* param ), ( void * * ) & pparam );
183
183
} else {
184
- zend_hash_index_update (hash , param -> paramno , param , sizeof (* param ), & pparam );
184
+ zend_hash_index_update (hash , param -> paramno , param , sizeof (* param ), ( void * * ) & pparam );
185
185
}
186
186
187
187
/* tell the driver we just created a parameter */
@@ -467,7 +467,7 @@ static PHP_METHOD(PDOStatement, rowCount)
467
467
468
468
469
469
470
- extern function_entry pdo_dbstmt_functions [] = {
470
+ function_entry pdo_dbstmt_functions [] = {
471
471
PHP_ME (PDOStatement , execute , NULL , ZEND_ACC_PUBLIC )
472
472
PHP_ME (PDOStatement , fetch , NULL , ZEND_ACC_PUBLIC )
473
473
PHP_ME (PDOStatement , bindParam , second_arg_force_ref , ZEND_ACC_PUBLIC )
@@ -607,7 +607,7 @@ zend_object_handlers pdo_dbstmt_object_handlers = {
607
607
NULL
608
608
};
609
609
610
- void pdo_dbstmt_free_storage (void * object TSRMLS_DC )
610
+ void pdo_dbstmt_free_storage (zend_object * object TSRMLS_DC )
611
611
{
612
612
pdo_stmt_t * stmt = (pdo_stmt_t * )object ;
613
613
0 commit comments