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