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,9 +2279,6 @@ 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
2285
2282
unsigned long mode ;
2286
2283
zend_long attr ;
2287
2284
void * mode_p ;
@@ -2295,13 +2292,16 @@ PHP_FUNCTION(mysqli_stmt_attr_set)
2295
2292
switch (attr ) {
2296
2293
#if MYSQL_VERSION_ID >= 50107
2297
2294
case STMT_ATTR_UPDATE_MAX_LENGTH :
2295
+ {
2296
+ my_bool mode_b ;
2298
2297
if (mode_in != 0 && mode_in != 1 ) {
2299
2298
zend_argument_value_error (ERROR_ARG_POS (3 ), "must be 0 or 1 for attribute MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH" );
2300
2299
RETURN_THROWS ();
2301
2300
}
2302
2301
mode_b = (my_bool ) mode_in ;
2303
2302
mode_p = & mode_b ;
2304
2303
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