View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001571 | Xdebug | Uncategorized | public | 2018-08-14 10:18 | 2019-01-22 21:58 |
| Reporter | derick | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 2.6.1 | ||||
| Target Version | 2.7.0rc1 | Fixed in Version | 2.7.0rc1 | ||
| Summary | 0001571: File/line information is not shown for closures in namespaces | ||||
| Description | When making stack traces and for code coverage, we try to add the file/line numbers to the name of the "closure" so that's a bit more like a useful function name. When a closure is created in a namespace, the check fails, as we do an equivalence check of the name "{closure}", where we should check whether the function name ends with "{closure}. This is done in both xdebug_code_coverage.c and xdebug_stack.c | ||||
| Steps To Reproduce | derick@singlemalt:~ $ php -dxdebug.overload_var_dump=0 -d display_errors=1 -d display_startup_errors=1 -d error_reporting=E_ALL -d xdebug.auto_trace=1 -d xdebug.trace_format=0 -d xdebug.trace_options=0 -d xdebug.collect_params=1 -d xdebug.collect_return=1 -d xdebug.trace_output_dir=/tmp -d xdebug.trace_output_name=trace /tmp/518-ns.php
| ||||
| Tags | No tags attached. | ||||
| Operating System | |||||
| PHP Version | 7.2.0-7.2.4 | ||||