File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2279,6 +2279,9 @@ PHP_FUNCTION(mysqli_stmt_attr_set)
2279
2279
MY_STMT * stmt ;
2280
2280
zval * mysql_stmt ;
2281
2281
zend_long mode_in ;
2282
+ #if MYSQL_VERSION_ID >= 50107
2283
+ my_bool mode_b ;
2284
+ #endif
2282
2285
unsigned long mode ;
2283
2286
zend_long attr ;
2284
2287
void * mode_p ;
@@ -2292,16 +2295,13 @@ PHP_FUNCTION(mysqli_stmt_attr_set)
2292
2295
switch (attr ) {
2293
2296
#if MYSQL_VERSION_ID >= 50107
2294
2297
case STMT_ATTR_UPDATE_MAX_LENGTH :
2295
- {
2296
- my_bool mode_b ;
2297
2298
if (mode_in != 0 && mode_in != 1 ) {
2298
2299
zend_argument_value_error (ERROR_ARG_POS (3 ), "must be 0 or 1 for attribute MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH" );
2299
2300
RETURN_THROWS ();
2300
2301
}
2301
2302
mode_b = (my_bool ) mode_in ;
2302
2303
mode_p = & mode_b ;
2303
2304
break ;
2304
- }
2305
2305
#endif
2306
2306
case STMT_ATTR_CURSOR_TYPE : {
2307
2307
switch (mode_in ) {
You can’t perform that action at this time.
0 commit comments