Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 59 lines (56 sloc) 1.086 kb
b23396f @derickr - Added two test-cases for the non-bug #538.
authored
1 --TEST--
903e2fb @derickr Tests clean-up (probably only part 1 though...)
authored
2 Test for bug #538: Error in watches and call stack parameter with string containing '\\'
b23396f @derickr - Added two test-cases for the non-bug #538.
authored
3 --INI--
4 xdebug.collect_params=3
535df90 @derickr Implemented issue #457: var_dump() overloading for the commandline.
authored
5 xdebug.overload_var_dump=0
b23396f @derickr - Added two test-cases for the non-bug #538.
authored
6 --FILE--
7 <?php
8 function call($param1, $param2, $param3)
9 {
10 echo $param1, "\n";
11 echo $param2, "\n";
12 echo $param3, "\n";
13
14 var_dump(xdebug_get_function_stack());
15 }
16
17 $test=getcwd();
18 $value = 'candena\\a\nb';
19 echo $value, "\n";
20 call($test, $value, 'caneda \\\a \\\\b \\\\\c|');
21 ?>
22 --EXPECTF--
23 candena\a\nb
24 %s
25 candena\a\nb
26 caneda \\a \\b \\\c|
27 array(2) {
28 [0]=>
29 array(4) {
30 ["function"]=>
31 string(6) "{main}"
32 ["file"]=>
79f0010 @derickr - Fixed more testcases, some for paths and some relied on system configu...
authored
33 string(%d) "%sbug00538-2.php"
b23396f @derickr - Added two test-cases for the non-bug #538.
authored
34 ["line"]=>
35 int(0)
36 ["params"]=>
37 array(0) {
38 }
39 }
40 [1]=>
41 array(4) {
42 ["function"]=>
43 string(4) "call"
44 ["file"]=>
79f0010 @derickr - Fixed more testcases, some for paths and some relied on system configu...
authored
45 string(%d) "%sbug00538-2.php"
b23396f @derickr - Added two test-cases for the non-bug #538.
authored
46 ["line"]=>
47 int(14)
48 ["params"]=>
49 array(3) {
50 ["param1"]=>
10439b2 @derickr Fixed test file for bug #538.
authored
51 string(%d) "'%sxdebug'"
b23396f @derickr - Added two test-cases for the non-bug #538.
authored
52 ["param2"]=>
53 string(16) "'candena\\a\\nb'"
54 ["param3"]=>
55 string(29) "'caneda \\\\a \\\\b \\\\\\c|'"
56 }
57 }
58 }
Something went wrong with that request. Please try again.