Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a191144584
Fetching contributors…

Cannot retrieve contributors at this time

63 lines (57 sloc) 1.662 kb
--TEST--
Test for bug #756: Tracing doesn't always understand the variables and shows IS_VAR
--INI--
xdebug.auto_trace=0
xdebug.trace_options=0
xdebug.trace_output_dir=/tmp
xdebug.trace_output_name=trace.%c
xdebug.collect_return=1
xdebug.collect_params=3
xdebug.collect_assignments=1
xdebug.auto_profile=0
xdebug.profiler_enable=0
xdebug.dump_globals=0
xdebug.show_mem_delta=0
xdebug.trace_format=0
--FILE--
<?php
class foo
{
static $bar;
public $foo;
static function bar()
{
self::$bar++;
}
function foo()
{
$this->foo++;
}
}
$tf = xdebug_start_trace('/tmp/'. uniqid('xdt', TRUE));
$trace_file = xdebug_get_tracefile_name();
foo::bar();
$f = new foo;
$f->foo();
echo file_get_contents($trace_file);
unlink($trace_file);
echo "DONE\n";
?>
--EXPECTF--
TRACE START [%d-%d-%d %d:%d:%d]
=> $tf = '/tmp/xdt%s.%s.xt' %sbug00756.php:18
%w%f %w%d -> xdebug_get_tracefile_name() %sbug00756.php:19
>=> '/tmp/xdt%s.%s.xt'
=> $trace_file = '/tmp/xdt%s.%s.xt' %sbug00756.php:19
%w%f %w%d -> foo::bar() %sbug00756.php:21
=> self::bar++ %sbug00756.php:9
>=> NULL
%w%f %w%d -> foo->foo() %sbug00756.php:22
=> $this->foo++ %sbug00756.php:14
>=> NULL
=> $f = class foo { public $foo = 1 } %sbug00756.php:22
%w%f %w%d -> foo->foo() %sbug00756.php:23
=> $this->foo++ %sbug00756.php:14
>=> NULL
%w%f %w%d -> file_get_contents('/tmp/xdt%s.%s.xt') %sbug00756.php:25
DONE
Jump to Line
Something went wrong with that request. Please try again.