title: Why bit(1) returns chars 0x00 and 0x01 instead of 0x30 '0' and 0x31 '1'?
body: <p><a href="http://dev.mysql.com/doc/refman/5.6/en/bit-type.html" rel="nofollow">According to the documentation</a>, <code>bit(1)</code> is a numeric field type. Then why using PHP 5.6 I'm receiving 0x00 and 0x01 chars?</p>
  
  <p>Database:</p>
  
  <pre><code>CREATE TABLE IF NOT EXISTS `demo` (
      `id` bigint(20) unsigned NOT NULL,
      `test` bit(1) NOT NULL
  ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
  
  INSERT INTO `demo` (`id`, `test`) VALUES (1, b'0'), (2, b'1');
  </code></pre>
  
  <p>Test code:</p>
  
  <pre><code>$q = mysql_query("select * from demo");
  while($row = mysql_fetch_array($q)) {
      if ($row['test'] === chr(0x00)) {
          echo '0x00' . PHP_EOL;
      } elseif ($row['test'] === chr(0x01)) {
          echo '0x01' . PHP_EOL;
      }
      if ((bool) $row['test'] === true) {
          echo 'true' . PHP_EOL;
      } else {
          echo 'false' . PHP_EOL;
      }
  
  }
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>0x00
  true
  0x01
  true
  </code></pre>
  
  <p>I'm using PHP 5.6.9 with MySQL 5.5.44.</p>