File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2260,13 +2260,13 @@ PHP_FUNCTION(mysqli_stmt_attr_set)
2260
2260
#if MYSQL_VERSION_ID >= 50107
2261
2261
case STMT_ATTR_UPDATE_MAX_LENGTH :
2262
2262
{
2263
- my_bool mode_b ;
2263
+ // my_bool mode_b;
2264
2264
if (mode_in != 0 && mode_in != 1 ) {
2265
2265
zend_argument_value_error (ERROR_ARG_POS (3 ), "must be 0 or 1 for attribute MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH" );
2266
2266
RETURN_THROWS ();
2267
2267
}
2268
- mode_b = (my_bool ) mode_in ;
2269
- mode_p = & mode_b ;
2268
+ mode = mode_in ; // (my_bool) mode_in;
2269
+ mode_p = & mode ;
2270
2270
break ;
2271
2271
}
2272
2272
#endif
Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ require_once("connect.inc");
72
72
var_dump ($ stmt ->attr_set (MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH , 1 ));
73
73
$ res = $ stmt ->attr_get (MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH );
74
74
if ($ res !== 1 )
75
+ var_dump ($ res );
75
76
printf ("[007.1] max_length should be 1, got %s \n" , $ res );
76
77
$ stmt ->execute ();
77
78
$ stmt ->store_result ();
You can’t perform that action at this time.
0 commit comments