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 @@ -2246,9 +2246,6 @@ PHP_FUNCTION(mysqli_stmt_attr_set)
2246
2246
MY_STMT * stmt ;
2247
2247
zval * mysql_stmt ;
2248
2248
zend_long mode_in ;
2249
- #if MYSQL_VERSION_ID >= 50107
2250
- my_bool mode_b ;
2251
- #endif
2252
2249
unsigned long mode ;
2253
2250
zend_long attr ;
2254
2251
void * mode_p ;
@@ -2262,13 +2259,16 @@ PHP_FUNCTION(mysqli_stmt_attr_set)
2262
2259
switch (attr ) {
2263
2260
#if MYSQL_VERSION_ID >= 50107
2264
2261
case STMT_ATTR_UPDATE_MAX_LENGTH :
2262
+ {
2263
+ my_bool mode_b ;
2265
2264
if (mode_in != 0 && mode_in != 1 ) {
2266
2265
zend_argument_value_error (ERROR_ARG_POS (3 ), "must be 0 or 1 for attribute MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH" );
2267
2266
RETURN_THROWS ();
2268
2267
}
2269
2268
mode_b = (my_bool ) mode_in ;
2270
2269
mode_p = & mode_b ;
2271
2270
break ;
2271
+ }
2272
2272
#endif
2273
2273
case STMT_ATTR_CURSOR_TYPE : {
2274
2274
switch (mode_in ) {
You can’t perform that action at this time.
0 commit comments