/
xdebug_var_dump_fileformat-text.phpt
64 lines (56 loc) · 1.21 KB
/
xdebug_var_dump_fileformat-text.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
59
60
61
62
63
64
--TEST--
Test for file display with xdebug_var_dump()
--INI--
xdebug.default_enable=1
xdebug.auto_trace=0
xdebug.profiler_enable=0
html_errors=0
xdebug.var_display_max_children=11
xdebug.overload_var_dump=2
xdebug.cli_color=0
xdebug.file_link_format=
xdebug.filename_format=
--FILE--
<?php
class TimeStuff {
private $timestamp;
function __construct($ts = null)
{
$this->timestamp = $ts === null ? time() : $ts;
}
}
$ts1 = new TimeStuff(1092515106);
ini_set('xdebug.filename_format', "%n");
var_dump($ts1);
echo "\n";
ini_set('xdebug.filename_format', "…%s%p");
var_dump($ts1);
echo "\n";
ini_set('xdebug.filename_format', "«%a»");
var_dump($ts1);
echo "\n";
ini_set('xdebug.filename_format', "{%f}");
var_dump($ts1);
echo "\n";
?>
--EXPECTF--
xdebug_var_dump_fileformat-text.php:13:
class TimeStuff#%d (%d) {
private $timestamp =>
int(1092515106)
}
…%etests%exdebug_var_dump_fileformat-text.php:17:
class TimeStuff#%d (%d) {
private $timestamp =>
int(1092515106)
}
«%s%etests%exdebug_var_dump_fileformat-text.php»:21:
class TimeStuff#%d (%d) {
private $timestamp =>
int(1092515106)
}
{%s%etests%exdebug_var_dump_fileformat-text.php}:25:
class TimeStuff#%d (%d) {
private $timestamp =>
int(1092515106)
}