View Issue Details

IDProjectCategoryView StatusLast Update
0000266Xdebugpublic2007-05-31 21:26
Reportertoddw Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionopen 
Summary0000266: DBGp: Windows filename URIs use incorrect path separators
Description

In the dbgp protocol, the filename URI set in response to the "stack_get" command are incorrect. Example:

<?xml version="1.0" encoding="iso-8859-1"?>
<response command="stack_get" transaction_id="36">
<stack where="{main}" level="0" type="file" filename="file:///C%3A%5CApache2.2%5Chtdocs%5Cphp%5Cphpinfo.php" lineno="4"></stack>
</response>

That filename unescaped is:
file:///C:\Apache2.2\htdocs\php\phpinfo.php

I believe it should be using forward slashes for the path separator, like so:
file:///C:/Apache2.2/htdocs/php/phpinfo.php

TagsNo tags attached.
Operating SystemWindows XP
PHP Version5.1.6

Activities

toddw

2007-05-11 00:41

reporter   ~0000608

Actually I'm now not sure if it should be:
file:///C:/Apache2.2/htdocs/php/phpinfo.php
or
file:///C:|/Apache2.2/htdocs/php/phpinfo.php

According to the stack_get documentation at http://xdebug.org/docs-dbgp.php#id50 it should be of the form:
file://systemname/c|/path

But that seems just wrong. Surely if this is a URI/URL then it would be of the form:
file://systemname/c/path

The different, three slashes represents and local absolute path "///", whilst two slashes "//" represents a path on a specific machine.

toddw

2007-05-11 00:52

reporter   ~0000609

Woops, I misread that format, it does actually seem correct (either of).
file:///C:/Apache2.2/htdocs/php/phpinfo.php
or
file:///C|/Apache2.2/htdocs/php/phpinfo.php

So, with the machine name it would be either of:
file://systemname/C:/Apache2.2/htdocs/php/phpinfo.php
or
file://systemname/C|/Apache2.2/htdocs/php/phpinfo.php

toddw

2007-05-11 01:01

reporter   ~0000610

After reading:
http://www.ietf.org/rfc/rfc1738.txt
and
http://www.ietf.org/rfc/rfc2396.txt

I would say it should be:
file://systemname/C:/Apache2.2/htdocs/php/phpinfo.php

derick

2007-05-31 21:26

administrator   ~0000645

Fixed in CVS, but I omitted the system name:

fileuri="file:///I:/bug266.php"