View Issue Details

IDProjectCategoryView StatusLast Update
0000538XdebugUncategorizedpublic2010-03-20 21:16
Reporterdegoo Assigned Toderick  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
Product Version2.0.0dev 
Summary0000538: Error in watches and call stack parameter with string containing '\'
Description

When a string contain a double slash (\), in watches double slash is replaced by a slash, but if a string really contains a double slash, using property_get -n always replace double slash with a single one.

When xdebug_get_function_stack() is used, if some parameters contains double slash , the values are not replaced with single slash.

Additional Information

<?php
function call($param1, $param2, $param3)
{
echo $param1;
echo $param2;
echo $param3;
}

$test=getcwd();
call($test,'cadena\\',3);

?>

$test as watch value contains 'c:\document and settings...\'
as parameter in call stack 'c:\document as settings...\'
$param2 contains 'cadena\' value as watch
$param2 contains 'cadena\' value as shown in call stack parameters.

TagsNo tags attached.
Operating SystemWindows XP SP3
PHP Version5.2.9

Activities

derick

2010-03-20 21:16

administrator   ~0001393

There is no bug here. Through DBGP with "property_get" you get to see the real value, unescaped. In function traces, and the output of xdebug_get_function_stack() they are escaped so that things like new lines can be properly shown.

Issue History

Date Modified Username Field Change
2010-02-15 18:08 degoo New Issue
2010-02-15 18:08 degoo Operating System => Windows XP SP3
2010-02-15 18:08 degoo PHP Version => 5.2.9
2010-02-15 18:08 degoo Xdebug Version => 2.1.0beta1
2010-03-20 21:16 derick Note Added: 0001393
2010-03-20 21:16 derick Status new => resolved
2010-03-20 21:16 derick Resolution open => no change required
2010-03-20 21:16 derick Assigned To => derick
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