php.net |  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
Votes:3
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
 [2002-05-31 10:26 UTC] sergiym at rireg dot com
in PHP 4.06:

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

produces

<hr>
:          (0x3A 0x00 0x3A)
<hr>
:          (0x3A 0x00 0x3A)
<hr>

but in PHP 4.2.0 it

produces

<hr>
: :        (0x3A 0x20 0x3A)
<hr>
: :        (0x3A 0x20 0x3A)
<hr>

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

Patches

Pull Requests

History

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

--Jani

 [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-2024 The PHP Group
All rights reserved.
Last updated: Mon Oct 14 08:01:27 2024 UTC