|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17543 non-printable characters are converted to spaces when printing
Submitted: 2002-05-31 10:26 UTC Modified: 2002-07-05 01:00 UTC
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:0 (0.0%)
From: sergiym at rireg dot com Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 4.2.0 OS: FreeBSD 4.5
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-05-31 10:26 UTC] sergiym at rireg dot com
in PHP 4.06:

     echo "<hr>";
     echo ":\0:";
     echo "<hr>";
     print ":\0:";
     echo "<hr>";


:          (0x3A 0x00 0x3A)
:          (0x3A 0x00 0x3A)

but in PHP 4.2.0 it


: :        (0x3A 0x20 0x3A)
: :        (0x3A 0x20 0x3A)

why it is so? and how can I print non-printable characters like \0 via PHP?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-04 17:59 UTC]
Please try the latest CVS snapshot from as I can't reproduce this.


 [2002-07-05 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC