|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74086 A null byte character is added to the fetched data from mysql via pdo
Submitted: 2017-02-12 04:28 UTC Modified: 2017-02-12 11:55 UTC
From: omoon at lamolabo dot com Assigned:
Status: Duplicate Package: PDO MySQL
PHP Version: 7.0.15 OS: Linux / Mac
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
50 - 20 = ?
Subscribe to this entry?

 [2017-02-12 04:28 UTC] omoon at lamolabo dot com
When you fetch 16777212 byte data from MySQL database via pdo, a null byte character seems to be added to the end of the data.

Test script:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-02-12 11:11 UTC]
-Package: PDO related +Package: PDO MySQL
 [2017-02-12 11:55 UTC]
Duplicate of bug #74021.
 [2017-02-12 11:55 UTC]
-Status: Open +Status: Duplicate
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Sep 27 11:03:36 2021 UTC