|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2017-08-01 15:07 UTC] michal at cihar dot com
  [2017-09-13 12:13 UTC] ab@php.net
  [2017-09-13 12:13 UTC] ab@php.net
 
-Status: Open
+Status: Closed
  [2017-09-13 17:50 UTC] ale5000 at gmail dot com
  [2017-09-24 10:11 UTC] strange_v at ukr dot net
  [2017-10-22 15:05 UTC] ab@php.net
 
-Assigned To:
+Assigned To: ab
  [2017-10-22 15:05 UTC] ab@php.net
  [2017-10-22 21:15 UTC] ale5000 at gmail dot com
  [2017-10-23 05:28 UTC] ab@php.net
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 13:00:01 2025 UTC | 
Description: ------------ It corrupt data when reading fields of bit type. See the sample code. The problem is possibly Windows specific but I'm not sure. Test script: --------------- <?php $username = 'root'; $password = ''; $database_name = 'test_db'; $mysqli = new mysqli('127.0.0.1', $username, $password, $database_name); if($mysqli->connect_errno) die('Error'); $sql = "CREATE TABLE test (bit_column_1 bit(1) NOT NULL) DEFAULT CHARSET=utf8"; $mysqli->query($sql); $sql = "INSERT INTO test (bit_column_1) VALUES (0)"; $mysqli->query($sql); $sql = "SELECT bit_column_1 FROM test"; if(!$result = $mysqli->query($sql)) die('Failed'); $row = $result->fetch_assoc(); echo "Result: ".$row['bit_column_1']; Expected result: ---------------- 0 Actual result: -------------- 668556962937438208