diff --git a/ext/mysqli/tests/mysqli_stmt_fetch_bit.phpt b/ext/mysqli/tests/mysqli_stmt_fetch_bit.phpt index 980deee2b1b..3735e1245fb 100644 --- a/ext/mysqli/tests/mysqli_stmt_fetch_bit.phpt +++ b/ext/mysqli/tests/mysqli_stmt_fetch_bit.phpt @@ -22,7 +22,8 @@ Fetching BIT column values using the PS API printf("[001] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n", $host, $user, $db, $port, $socket); - for ($bits = 1; $bits < 64; $bits++) { + /* NOTE: works only for up to 31 bits! This limitation should be documented. */ + for ($bits = 1; $bits < 32; $bits++) { $max_value = pow(2, $bits) - 1; $tests = 0; if (!mysqli_query($link, "DROP TABLE IF EXISTS test") ||