MantisBT - Xdebug | ||||||||||
| View Issue Details | ||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||
| 0000693 | Xdebug | Usage problems | public | 2011-05-14 17:26 | 2013-05-22 04:51 | |||||
| Reporter | relaxnow | |||||||||
| Assigned To | derick | |||||||||
| Priority | normal | Severity | minor | Reproducibility | always | |||||
| Status | feedback | Resolution | reopened | |||||||
| Platform | x86 | OS | CentOS | OS Version | 5.6 | |||||
| Product Version | ||||||||||
| Target Version | 2.2.x | Fixed in Version | ||||||||
| Operating System | ||||||||||
| PHP Version | 5.3.3 | |||||||||
| Summary | 0000693: Profiling: cachegrind files not written when filename exceeds 260 characters | |||||||||
| Description | When the '%R' option is used for the output name and the request URI exceeds 260 characters XDebug doesn't output a cachegrind file or even log an error. | |||||||||
| Steps To Reproduce | 1. Set up XDebug, enable profiling. 2. Use the following INI settings: xdebug.profiler_enable = 1 xdebug.profiler_output_name = cachegrind.out.%H.%R 3. Go to a long url (I used ??11111111111111111111111111111222222222222222222222222222222233333333333333333333333344444444444444444444444444444444444455555555555555555555555555555566666666666666666666666666666666666667777777777777777777777777778888901234) 4. Go to the output directory, expect to see a cachegrind.out file. | |||||||||
| Additional Information | Attached is a patch made on a checkout of revision 3440 of trunk. This is my first C code ever, so it's probably too naive, but it does seem to fix the bug by truncating the filename to NAME_MAX. Let me know how I can help (had fun messing with C). | |||||||||
| Tags | No tags attached. | |||||||||
| Relationships |
| |||||||||
| Attached Files | http://bugs.xdebug.org/file_download.php?file_id=29&type=bug | |||||||||
| Issue History | ||||||||||
| Date Modified | Username | Field | Change | |||||||
| 2011-05-14 17:26 | relaxnow | New Issue | ||||||||
| 2011-05-14 17:26 | relaxnow | File Added: xdebug.rev3440.profiling-long-filename.patch | ||||||||
| 2011-08-13 19:03 | derick | Note Added: 0001781 | ||||||||
| 2011-08-13 19:03 | derick | Status | new => closed | |||||||
| 2011-08-13 19:03 | derick | Assigned To | => derick | |||||||
| 2011-08-13 19:03 | derick | Resolution | open => fixed | |||||||
| 2011-08-17 19:44 | derick | Relationship added | has duplicate 0000604 | |||||||
| 2011-10-12 07:56 | relaxnow | Note Added: 0001842 | ||||||||
| 2011-10-12 07:56 | relaxnow | Status | closed => feedback | |||||||
| 2011-10-12 07:56 | relaxnow | Resolution | fixed => reopened | |||||||
| 2012-03-12 16:46 | derick | Target Version | => 2.2.1 | |||||||
| 2012-07-14 23:14 | derick | Target Version | 2.2.1 => 2.2.2 | |||||||
| 2013-03-23 14:50 | derick | Target Version | 2.2.2 => 2.2.3 | |||||||
| 2013-05-22 04:51 | derick | Target Version | 2.2.3 => 2.2.x | |||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||