@@ -811,12 +811,12 @@ PHP_FUNCTION(mysqli_stmt_execute)
811
811
{
812
812
MY_STMT * stmt ;
813
813
zval * mysql_stmt ;
814
- zval * input_params = NULL ;
814
+ HashTable * input_params = NULL ;
815
815
#ifndef MYSQLI_USE_MYSQLND
816
816
unsigned int i ;
817
817
#endif
818
818
819
- if (zend_parse_method_parameters (ZEND_NUM_ARGS (), getThis (), "O|a !" , & mysql_stmt , mysqli_stmt_class_entry , & input_params ) == FAILURE ) {
819
+ if (zend_parse_method_parameters (ZEND_NUM_ARGS (), getThis (), "O|h !" , & mysql_stmt , mysqli_stmt_class_entry , & input_params ) == FAILURE ) {
820
820
RETURN_THROWS ();
821
821
}
822
822
MYSQLI_FETCH_RESOURCE_STMT (stmt , mysql_stmt , MYSQLI_STATUS_VALID );
@@ -830,7 +830,7 @@ PHP_FUNCTION(mysqli_stmt_execute)
830
830
unsigned int param_count ;
831
831
MYSQLND_PARAM_BIND * params ;
832
832
833
- hash_num_elements = zend_hash_num_elements (Z_ARRVAL_P ( input_params ) );
833
+ hash_num_elements = zend_hash_num_elements (input_params );
834
834
param_count = mysql_stmt_param_count (stmt -> stmt );
835
835
if (hash_num_elements != param_count ) {
836
836
zend_argument_value_error (ERROR_ARG_POS (2 ), "must consist of exactly %d elements, %d present" , param_count , hash_num_elements );
@@ -844,7 +844,7 @@ PHP_FUNCTION(mysqli_stmt_execute)
844
844
}
845
845
846
846
index = 0 ;
847
- ZEND_HASH_FOREACH_VAL (Z_ARRVAL_P ( input_params ) , tmp ) {
847
+ ZEND_HASH_FOREACH_VAL (input_params , tmp ) {
848
848
ZVAL_COPY_VALUE (& params [index ].zv , tmp );
849
849
params [index ].type = MYSQL_TYPE_VAR_STRING ;
850
850
index ++ ;
0 commit comments