]> granicus.if.org Git - php/commitdiff
Fixing test by calling it a known limit. We keept the test failing as a reminder...
authorUlf Wendel <uw@php.net>
Mon, 21 Sep 2009 12:02:30 +0000 (12:02 +0000)
committerUlf Wendel <uw@php.net>
Mon, 21 Sep 2009 12:02:30 +0000 (12:02 +0000)
ext/mysqli/tests/mysqli_stmt_fetch_bit.phpt

index 980deee2b1b3f8e4502be9ba67b887d83c35f2a5..3735e1245fb39676962a455ba959cfaacc5e90ab 100644 (file)
@@ -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") ||