/
functrace_comp_3.phpt
53 lines (50 loc) · 1.24 KB
/
functrace_comp_3.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
--TEST--
Test computerized function traces (level3, comp)
--INI--
xdebug.default_enable=1
xdebug.profiler_enable=0
xdebug.auto_trace=0
xdebug.trace_format=1
xdebug.dump_globals=0
xdebug.show_mem_delta=0
xdebug.collect_vars=0
xdebug.collect_params=3
xdebug.collect_returns=0
xdebug.collect_assignments=0
--FILE--
<?php
$tf = xdebug_start_trace('/tmp/'. uniqid('xdt', TRUE), XDEBUG_TRACE_COMPUTERIZED);
function foo( $a, $b )
{
// do nothing really
}
@foo( 42 );
@foo( "string" );
@foo( "string\nwith\nnewline" );
@foo( 1, false );
@foo( true, null );
@foo( "foo", "bar", 3.1415 );
xdebug_stop_trace();
echo file_get_contents($tf);
unlink($tf);
?>
--EXPECTF--
Version: %s
File format: 2
TRACE START [%d-%d-%d %d:%d:%d]
2 2 1 %f %d
2 3 0 %f %d foo 1 %sfunctrace_comp_3.php 9 2 42 ???
2 3 1 %f %d
2 4 0 %f %d foo 1 %sfunctrace_comp_3.php 10 2 'string' ???
2 4 1 %f %d
2 5 0 %f %d foo 1 %sfunctrace_comp_3.php 11 2 'string\nwith\nnewline' ???
2 5 1 %f %d
2 6 0 %f %d foo 1 %sfunctrace_comp_3.php 12 2 1 FALSE
2 6 1 %f %d
2 7 0 %f %d foo 1 %sfunctrace_comp_3.php 13 2 TRUE NULL
2 7 1 %f %d
2 8 0 %f %d foo 1 %sfunctrace_comp_3.php 14 3 'foo' 'bar' 3.1415
2 8 1 %f %d
2 9 0 %f %d xdebug_stop_trace 0 %sfunctrace_comp_3.php 16 0
%f %d
TRACE END [%d-%d-%d %d:%d:%d]