[xdebug-dev] Bug 0000184: problem with control chars in code traces

From: <xdebug-dev[@]lists.xdebug.org>
Date: Sun, 28 May 2006 04:19:09 +0200

The following bug has been REOPENED.
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000184
======================================================================
Reporter: judas_iscariote
Handler:
======================================================================
Project: Xdebug
Bug ID: 184
Category: Feature/Change request
Reproducibility: always
Severity: tweak
Priority: normal
Status: feedback
Operating System:
PHP Version: 5.1-dev
Xdebug Version: 2.0.0rc1-dev
======================================================================
Date Submitted: 2006-05-19 07:39 CEST
Last Modified: 2006-05-28 04:19 CEST
======================================================================
Summary: problem with control chars in code traces
Description:
Im not very sure if this is a bug, a limitation or just how the editors
behave :-)
but in code like

str_replace(array("\r", "\n"), ' ', 'foobar');

control chars gets parsed by every single editor I tried
and traces do not display the real values passed.(just a new line or
carriage return in the file is created)

not sure if you can determine with something internal like ctype_cntrl()
if the param is only a control char, and escape it to get the real literal
param displayed in trace.

Thus, I opened this as feature request.

  

======================================================================

----------------------------------------------------------------------
 derick - 2006-05-27 22:07 CEST
----------------------------------------------------------------------
Fixed in CVS.

----------------------------------------------------------------------
 judas_iscariote - 2006-05-28 04:19 CEST
----------------------------------------------------------------------
Hi, it works fine now, however.

If I pass a NULL byte.

str_replace("\0", ' ', 'foobar');

( "\0" or chr(0) same result)

0.0002 100704 -> str_replace('\000', ' ', 'foobar') is printed in
the trace file, correct me if Im wrong, but I Expect to see
str_replace('\0', ' ', 'foobar') or Im missing something ?

Bug History
Date Modified Username Field Change
======================================================================
2006-05-19 07:39judas_iscarioteNew Bug
2006-05-19 07:39judas_iscarioteBug Monitored: judas_iscariote
2006-05-27 22:07derick Bugnote Added: 0000412
2006-05-27 22:07derick Status new => closed
2006-05-28 04:19judas_iscarioteBugnote Added: 0000416
2006-05-28 04:19judas_iscarioteResolution open => reopened
2006-05-28 04:19judas_iscarioteStatus closed => feedback
======================================================================
Received on Sun May 28 2006 - 04:19:12 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST