Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (35 sloc) 1020 Bytes
--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
xdebug.dump.GET=
xdebug.dump.SERVER=
--FILE--
<?php
$tf = xdebug_start_trace('/tmp/'. uniqid('xdt', TRUE));
$t = 42;
$t += $b;
@$t += $b;
xdebug_stop_trace();
echo file_get_contents($tf);
unlink($tf);
?>
--EXPECTF--
Notice: Undefined variable: b in %sassignment-trace4.php on line 5
Call Stack:
%w%f %w%d 1. {main}() %sassignment-trace4.php:0
TRACE START [%d-%d-%d %d:%d:%d]
=> $tf = '%s' %sassignment-trace4.php:2
=> $t = 42 %sassignment-trace4.php:4
=> $t += NULL %sassignment-trace4.php:5
=> $t += NULL %sassignment-trace4.php:6
%w%f %w%d -> xdebug_stop_trace() %sassignment-trace4.php:8
%w%f %w%d
TRACE END [%d-%d-%d %d:%d:%d]
Jump to Line
Something went wrong with that request. Please try again.