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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sergiym at rireg dot com
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri Apr 19 22:01:28 2024 UTC