|  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
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 — but make sure to vote on the bug!
Your email address:
Solve the problem:
32 + 40 = ?
Subscribe to this entry?

 [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-2023 The PHP Group
All rights reserved.
Last updated: Mon Dec 04 11:01:26 2023 UTC