View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000184 | Xdebug | Uncategorized | public | 2006-05-19 06:39 | 2020-03-12 18:01 |
Reporter | judas_iscariote | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | always |
Status | closed | Resolution | reopened | ||
Summary | 0000184: 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 :-) str_replace(array("\r", "\n"), ' ', 'foobar'); control chars gets parsed by every single editor I tried 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. | ||||
Tags | No tags attached. | ||||
Operating System | |||||
PHP Version | 5.1-dev | ||||
|
Fixed in CVS. |
|
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 ? |
|
update test case Index: tests/bug00184.phptRCS file: /repository/xdebug/tests/bug00184.phpt,v
|
|
This is how PHP's addcslashes does it as well. And as I use this internal function and it is more consistent I want to keep it this way. I'll update the test case though. |
Date Modified | Username | Field | Change |
---|---|---|---|
2006-05-19 06:39 | judas_iscariote | New Issue | |
2006-05-27 21:07 | derick | Status | new => closed |
2006-05-27 21:07 | derick | Note Added: 0000412 | |
2006-05-28 03:19 | judas_iscariote | Status | closed => feedback |
2006-05-28 03:19 | judas_iscariote | Resolution | open => reopened |
2006-05-28 03:19 | judas_iscariote | Note Added: 0000416 | |
2006-06-02 06:58 | judas_iscariote | Note Added: 0000418 | |
2006-08-19 13:26 | derick | Status | feedback => closed |
2006-08-19 13:26 | derick | Note Added: 0000439 | |
2020-03-12 16:56 | derick | Severity | tweak => feature |
2020-03-12 18:01 | derick | Category | Feature/Change request => Uncategorized |