From: [EMAIL PROTECTED] Operating system: FreeBSD 4.5 PHP version: 4.2.0 PHP Bug Type: *General Issues Bug description: non-printable characters are converted to spaces when printing
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? -- Edit bug report at http://bugs.php.net/?id=17543&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17543&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17543&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17543&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17543&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17543&r=support Expected behavior: http://bugs.php.net/fix.php?id=17543&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17543&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17543&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17543&r=globals