forked from xdebug/xdebug
-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
bug00690-2.phpt
27 lines (26 loc) · 851 Bytes
/
bug00690-2.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
--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