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