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