File: xdebug_var_dump_limitations_cli.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 (59 lines) | stat: -rw-r--r-- 1,070 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
--TEST--
Test for display limitations with xdebug_var_dump() on CLI.
--INI--
xdebug.mode=develop
xdebug.var_display_max_children=-1
xdebug.var_display_max_data=-1
xdebug.var_display_max_depth=-1
xdebug.cli_color=0
html_errors=0
--FILE--
<?php
$array = array( 1, true, "string" );
xdebug_var_dump( $array ); echo "\n\n";

ini_set('xdebug.var_display_max_depth', 0);
xdebug_var_dump( $array ); echo "\n\n";

ini_set('xdebug.var_display_max_depth', -1);
ini_set('xdebug.var_display_max_data', 0);
xdebug_var_dump( $array ); echo "\n\n";

ini_set('xdebug.var_display_max_children', 0);
ini_set('xdebug.var_display_max_data', -1);
xdebug_var_dump( $array ); echo "\n\n";
?>
--EXPECTF--
%sxdebug_var_dump_limitations_cli.php:3:
array(3) {
  [0] =>
  int(1)
  [1] =>
  bool(true)
  [2] =>
  string(6) "string"
}


%sxdebug_var_dump_limitations_cli.php:6:
array(3) {
  ...
}


%sxdebug_var_dump_limitations_cli.php:10:
array(3) {
  [0] =>
  int(1)
  [1] =>
  bool(true)
  [2] =>
  string(6) ""...
}


%sxdebug_var_dump_limitations_cli.php:14:
array(3) {

  (more elements)...
}