Skip to content

Commit 67e6b6a

Browse files
committed
Attempt to fix stmt_attr_set
1 parent 09c6110 commit 67e6b6a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/mysqli/mysqli_api.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2260,13 +2260,13 @@ PHP_FUNCTION(mysqli_stmt_attr_set)
22602260
#if MYSQL_VERSION_ID >= 50107
22612261
case STMT_ATTR_UPDATE_MAX_LENGTH:
22622262
{
2263-
my_bool mode_b;
2263+
//my_bool mode_b;
22642264
if (mode_in != 0 && mode_in != 1) {
22652265
zend_argument_value_error(ERROR_ARG_POS(3), "must be 0 or 1 for attribute MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH");
22662266
RETURN_THROWS();
22672267
}
2268-
mode_b = (my_bool) mode_in;
2269-
mode_p = &mode_b;
2268+
mode = mode_in;//(my_bool) mode_in;
2269+
mode_p = &mode;
22702270
break;
22712271
}
22722272
#endif

0 commit comments

Comments
 (0)