View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002214 | Xdebug | Tracing | public | 2023-11-23 17:46 | 2023-11-30 14:50 |
| Reporter | xwillq | Assigned To | derick | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 3.2.2 | ||||
| Target Version | 3.3dev | Fixed in Version | 3.3.0 | ||
| Summary | 0002214: Array keys aren't escaped in traces | ||||
| Description | Array keys aren't escaped in traces with machine readable format, which makes those traces hard to parse and breaks some existing scripts. | ||||
| Steps To Reproduce |
Expected result: Actual result: | ||||
| Additional Information | php -v output: OS: This issue also appears in this version: | ||||
| Tags | No tags attached. | ||||
| Attached Files | example-script.php (120 bytes)
<?php
function func(array $a) {
return $a;
}
func([
"\n" => "\n",
"\r" => "\r",
"\r\n" => "\r\n",
]);
example-output.xt (331 bytes)
Version: 3.2.2
File format: 4
TRACE START [2023-11-23 17:37:15.878726]
1 0 0 0.002306 388720 {main} 1 /app/xdebug-test.php 0 0
2 1 0 0.002555 388720 func 1 /app/xdebug-test.php 8 1 ['
' => '\n', '
' => '\r', '
' => '\r\n']
2 1 1 0.002721 388720
1 0 1 0.002817 388720
0.003032 384760
TRACE END [2023-11-23 17:37:15.879694]
| ||||
| Operating System | |||||
| PHP Version | 8.1.10-8.1.19 | ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2023-11-23 17:46 | xwillq | New Issue | |
| 2023-11-23 17:46 | xwillq | File Added: example-script.php | |
| 2023-11-23 17:46 | xwillq | File Added: example-output.xt | |
| 2023-11-29 17:37 | derick | Status | new => confirmed |
| 2023-11-29 17:37 | derick | Target Version | => 3.3dev |
| 2023-11-29 17:37 | derick | Note Added: 0006685 | |
| 2023-11-29 18:01 | derick | Assigned To | => derick |
| 2023-11-29 18:01 | derick | Status | confirmed => closed |
| 2023-11-29 18:01 | derick | Resolution | open => fixed |
| 2023-11-29 18:01 | derick | Fixed in Version | => 3.3dev |
| 2023-11-30 14:50 | derick | Fixed in Version | 3.3dev => 3.3.0 |