MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000653XdebugUsage problems (Wrong Results)public2011-01-10 16:352011-01-10 21:48
ReporterArchy 
Assigned Toderick 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version2.2dev 
Target VersionFixed in Version 
Summary0000653: XDebug profiler crash with %H in file name and non standart port
DescriptionBug 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 InformationFile: 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) {
                                 char_ptr[0] = '_';
                             }
                             xdebug_str_add(&fname, strval, 0);
TagsNo tags attached.
Operating Systemwindows 2008
PHP Version5.3.3
Attached Files

- Relationships

-  Notes
(0001637)
derick (administrator)
2011-01-10 21:48

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 13:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 13:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker