File: bug00538-002.phpt

package info (click to toggle)
xdebug 3.4.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,096 kB
  • sloc: ansic: 19,944; php: 6,217; xml: 4,172; pascal: 534; makefile: 4; sh: 2
file content (66 lines) | stat: -rw-r--r-- 1,180 bytes parent folder | download
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
59
60
61
62
63
64
65
66
--TEST--
Test for bug #538: Error in watches and call stack parameter with string containing '\\'
--INI--
xdebug.mode=develop
--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|
%sbug00538-002.php:8:
array(2) {
  [0] =>
  array(6) {
    'time' =>
    double(%f)
    'memory' =>
    int(%d)
    'function' =>
    string(6) "{main}"
    'file' =>
    string(%d) "%sbug00538-002.php"
    'line' =>
    int(0)
    'params' =>
    array(0) {
    }
  }
  [1] =>
  array(6) {
    'time' =>
    double(%f)
    'memory' =>
    int(%d)
    'function' =>
    string(4) "call"
    'file' =>
    string(%d) "%sbug00538-002.php"
    'line' =>
    int(14)
    'params' =>
    array(3) {
      'param1' =>
      string(%d) "'%s'"
      'param2' =>
      string(16) "'candena\\a\\nb'"
      'param3' =>
      string(29) "'caneda \\\\a \\\\b \\\\\\c|'"
    }
  }
}