summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Wendel <uw@php.net>2009-09-21 12:02:30 +0000
committerUlf Wendel <uw@php.net>2009-09-21 12:02:30 +0000
commit4dcea7c62483169474130927aeb782b62a5780b7 (patch)
treedb3367b5a9b7204b1cf6267827850200b53205da
parentb979107fd0b13713454e9b0ab694c9b56d063ae8 (diff)
downloadphp-git-4dcea7c62483169474130927aeb782b62a5780b7.tar.gz
Fixing test by calling it a known limit. We keept the test failing as a reminder to think about how to handle BIT(32) and up but none of us has an idea. Thinks work fine up to BIT(31) - the limitation should be documented.
-rw-r--r--ext/mysqli/tests/mysqli_stmt_fetch_bit.phpt3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/mysqli/tests/mysqli_stmt_fetch_bit.phpt b/ext/mysqli/tests/mysqli_stmt_fetch_bit.phpt
index 980deee2b1..3735e1245f 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") ||