Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (26 sloc) 851 Bytes
--TEST--
Test for bug #690: Function traces are not appended to file when xdebug_start_trace() is used with xdebug.trace_options=1 (step 2 of 2)
--INI--
xdebug.auto_trace=0
xdebug.trace_output_name=trace.bug690
xdebug.trace_options=1
xdebug.trace_format=0
xdebug.collect_assignments=1
xdebug.collect_return=1
xdebug.collect_params=4
--FILE--
<?php
xdebug_start_trace();
$trace_file = xdebug_get_tracefile_name();
echo $trace_file, "\n";
echo file_get_contents($trace_file);
unlink($trace_file);
?>
--EXPECTF--
/tmp/trace.bug690.xt
DONE
TRACE START [%d-%d-%d %d:%d:%d]
%w%f %w%d -> xdebug_get_tracefile_name() %sbug00690-2.php:3
>=> '/tmp/trace.bug690.xt'
=> $trace_file = '/tmp/trace.bug690.xt' %sbug00690-2.php:3
%w%f %w%d -> file_get_contents('/tmp/trace.bug690.xt') %sbug00690-2.php:5
Something went wrong with that request. Please try again.