--TEST-- PDO MySQL Bug #75177 Type 'bit' is fetched as unexpected string --SKIPIF-- --FILE-- query("DROP TABLE IF EXISTS $tbl"); $pdo->query("CREATE TABLE $tbl (`bit` bit(8)) ENGINE=InnoDB"); $pdo->query("INSERT INTO $tbl (`bit`) VALUES (1)"); $pdo->query("INSERT INTO $tbl (`bit`) VALUES (0b011)"); $pdo->query("INSERT INTO $tbl (`bit`) VALUES (0b01100)"); $ret = $pdo->query("SELECT * FROM $tbl")->fetchAll(); foreach ($ret as $i) { var_dump($i["bit"]); } ?> --EXPECT-- string(1) "1" string(1) "3" string(2) "12"