Bug #74086 [Opn->Dup]: A null byte character is added to the fetched data from mysql via pdo

From: Date: Sun, 12 Feb 2017 11:55:46 +0000
Subject: Bug #74086 [Opn->Dup]: A null byte character is added to the fetched data from mysql via pdo
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-207281@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74086&edit=1 ID: 74086 Updated by: nikic@php.net Reported by: omoon at lamolabo dot com Summary: A null byte character is added to the fetched data from mysql via pdo -Status: Open +Status: Duplicate Type: Bug Package: PDO MySQL Operating System: Linux / Mac PHP Version: 7.0.15 Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2017-02-12 11:55:33] nikic@php.net Duplicate of bug #74021. ------------------------------------------------------------------------ [2017-02-12 04:28:27] omoon at lamolabo dot com Description: ------------ 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: --------------- https://gist.github.com/omoon/69e5b39caf32e4a6aabd2410a0ef5851 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=74086&edit=1

« previous php.bugs (#207281) next »