View Issue Details

IDProjectCategoryView StatusLast Update
0000653XdebugUncategorizedpublic2011-01-10 21:48
ReporterArchy Assigned To 
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)!