Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a191144584
Fetching contributors…

Cannot retrieve contributors at this time

59 lines (56 sloc) 1.086 kb
--TEST--
Test for bug #538: Error in watches and call stack parameter with string containing '\\'
--INI--
xdebug.collect_params=3
xdebug.overload_var_dump=0
--FILE--
<?php
function call($param1, $param2, $param3)
{
echo $param1, "\n";
echo $param2, "\n";
echo $param3, "\n";
var_dump(xdebug_get_function_stack());
}
$test=getcwd();
$value = 'candena\\a\nb';
echo $value, "\n";
call($test, $value, 'caneda \\\a \\\\b \\\\\c|');
?>
--EXPECTF--
candena\a\nb
%s
candena\a\nb
caneda \\a \\b \\\c|
array(2) {
[0]=>
array(4) {
["function"]=>
string(6) "{main}"
["file"]=>
string(%d) "%sbug00538-2.php"
["line"]=>
int(0)
["params"]=>
array(0) {
}
}
[1]=>
array(4) {
["function"]=>
string(4) "call"
["file"]=>
string(%d) "%sbug00538-2.php"
["line"]=>
int(14)
["params"]=>
array(3) {
["param1"]=>
string(%d) "'%sxdebug'"
["param2"]=>
string(16) "'candena\\a\\nb'"
["param3"]=>
string(29) "'caneda \\\\a \\\\b \\\\\\c|'"
}
}
}
Jump to Line
Something went wrong with that request. Please try again.