Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 56c2f19dd0
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (28 sloc) 0.779 kB
--TEST--
Test for tracing assignments in user-readable function traces
--INI--
xdebug.default_enable=1
xdebug.profiler_enable=0
xdebug.auto_trace=0
xdebug.trace_format=0
xdebug.collect_vars=1
xdebug.collect_params=3
xdebug.collect_return=0
xdebug.collect_assignments=1
--FILE--
<?php
$tf = xdebug_start_trace('/tmp/'. uniqid('xdt', TRUE));
$t = array();
$t[] = 42;
xdebug_stop_trace();
echo file_get_contents($tf);
unlink($tf);
?>
--EXPECTF--
TRACE START [%d-%d-%d %d:%d:%d]
=> $tf = '%s' %sassignment-trace5.php:2
=> $t = array () %sassignment-trace5.php:4
=> $t[] = 42 %sassignment-trace5.php:5
%w%f %w%d -> xdebug_stop_trace() %sassignment-trace5.php:7
%w%f %w%d
TRACE END [%d-%d-%d %d:%d:%d]
Jump to Line
Something went wrong with that request. Please try again.