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
|
--TEST--
Starting Tracing: always, no environment
--INI--
xdebug.mode=trace
xdebug.trace_format=0
xdebug.start_with_request=yes
xdebug.trace_output_name=trace.%p.%r
xdebug.collect_return=0
xdebug.collect_assignments=0
--FILE--
<?php
$tf = xdebug_get_tracefile_name();
xdebug_stop_trace();
if (preg_match('@\.gz$@', $tf)) {
$fp = gzopen($tf, 'r');
echo stream_get_contents($fp);
} else {
echo file_get_contents($tf);
}
?>
--EXPECTF--
TRACE START [%d-%d-%d %d:%d:%d.%d]
%w%f %w%d -> {main}() %sstart_with_request_always_no_env.php:0
%w%f %w%d -> xdebug_get_tracefile_name() %sstart_with_request_always_no_env.php:2
%w%f %w%d -> xdebug_stop_trace() %sstart_with_request_always_no_env.php:4
%w%f %w%d
TRACE END [%d-%d-%d %d:%d:%d.%d]
|