|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2017-09-11 03:42 UTC] laruence@php.net
  [2017-09-13 10:29 UTC] ab@php.net
 
-Status: Open
+Status: Feedback
  [2017-09-13 10:29 UTC] ab@php.net
  [2017-09-13 11:06 UTC] ab@php.net
  [2017-09-13 12:13 UTC] ab@php.net
  [2017-09-13 12:13 UTC] ab@php.net
 
-Status: Feedback
+Status: Closed
 | |||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 01:00:01 2025 UTC | 
Description: ------------ MySQL type 'bit' is fetched as unexpected string. Works correctly in PHP < 7.2 Test script: --------------- <?php $db = new PDO('mysql:dbname=test', 'root', '123'); $db->query('CREATE TABLE tbl (`bit` bit(1)) ENGINE=InnoDB'); $db->query('INSERT INTO tbl (`bit`) VALUES (1)'); var_dump($db->query('SELECT * FROM tbl')->fetchAll()); Expected result: ---------------- array(1) { [0]=> array(2) { ["bit"]=> string(1) "1" } } Actual result: -------------- array(1) { [0]=> array(2) { ["bit"]=> string(19) "8220976629027962881" } }