View Issue Details

IDProjectCategoryView StatusLast Update
0000653XdebugUncategorizedpublic2011-01-10 21:48
ReporterArchy Assigned Toderick  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version2.2dev 
Summary0000653: XDebug profiler crash with %H in file name and non standart port
Description

Bug maybe related to http://bugs.xdebug.org/view.php?id=478
http://bugs.xdebug.org/view.php?id=312

In windows and linux next symbols are disallowed in file names:

\ / : * ? " < > |

But xdebug don't fix these symbols:
: * " < > |

All of them might jump out in REQUEST_URI and ":" in HTTP_HOST. And we have HTTP_HOST like host:8080 and tried to chose file name with %H, so xdebug profiler tried to create report file and die on it.

In "additional information" section I provided dirty fix to our problem, hope normal solution will appear soon.

Additional Information

File: usefulstuff.c
Line: 598
diff:

@@ -595,7 +595,7 @@

                        /* replace slashes, dots, question marks, plus signs,
                         * ambersands and spaces with underscores */
  • while ((char_ptr = strpbrk(strval, "/\.?&+ ")) != NULL) {
  • while ((char_ptr = strpbrk(strval, "/\.?&+: ")) != NULL) {
    charptr[0] = '';
    }
    xdebug_str_add(&fname, strval, 0);
TagsNo tags attached.
Operating Systemwindows 2008
PHP Version5.3.3

Activities

derick

2011-01-10 21:48

administrator   ~0001637

Fixed in SVN for 2.1.1 and 2.2.0. Thanks for your report (and suggested patch)!

Issue History

Date Modified Username Field Change
2011-01-10 16:35 Archy New Issue
2011-01-10 21:48 derick Note Added: 0001637
2011-01-10 21:48 derick Status new => closed
2011-01-10 21:48 derick Assigned To => derick
2011-01-10 21:48 derick Resolution open => fixed
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized