Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 54 lines (50 sloc) 1.333 kb
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 (level4, 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=4
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_4.php 9 2 $a = 42 $b = ???
2 3 1 %f %d
2 4 0 %f %d foo 1 %sfunctrace_comp_4.php 10 2 $a = 'string' $b = ???
2 4 1 %f %d
2 5 0 %f %d foo 1 %sfunctrace_comp_4.php 11 2 $a = 'string\nwith\nnewline' $b = ???
2 5 1 %f %d
2 6 0 %f %d foo 1 %sfunctrace_comp_4.php 12 2 $a = 1 $b = FALSE
2 6 1 %f %d
2 7 0 %f %d foo 1 %sfunctrace_comp_4.php 13 2 $a = TRUE $b = NULL
2 7 1 %f %d
2 8 0 %f %d foo 1 %sfunctrace_comp_4.php 14 3 $a = 'foo' $b = 'bar' 3.1415
2 8 1 %f %d
2 9 0 %f %d xdebug_stop_trace 0 %sfunctrace_comp_4.php 16 0
%f %d
TRACE END [%d-%d-%d %d:%d:%d]
Something went wrong with that request. Please try again.