forked from xdebug/xdebug
-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
bug00538-2.phpt
58 lines (56 loc) · 1.06 KB
/
bug00538-2.phpt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
--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|'"
}
}
}