Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (33 sloc) 713 Bytes
--TEST--
Test for variable member functions
--INI--
xdebug.enable=1
xdebug.auto_trace=0
xdebug.collect_params=3
xdebug.collect_return=0
xdebug.collect_assignments=0
xdebug.auto_profile=0
xdebug.show_mem_delta=0
xdebug.profiler_enable=0
xdebug.trace_format=0
--FILE--
<?php
$tf = xdebug_start_trace('/tmp/'. uniqid('xdt', TRUE));
class a {
function func_a1() {
}
function func_a2() {
}
}
$A = new a;
$A->func_a1();
$a = 'func_a2';
$A->$a();
echo file_get_contents($tf);
unlink($tf);
?>
--EXPECTF--
TRACE START [%d-%d-%d %d:%d:%d]
%w%f %w%d -> a->func_a1() /%s/test15.php:15
%w%f %w%d -> a->func_a2() /%s/test15.php:18
%w%f %w%d -> file_get_contents('/tmp/%s') /%s/test15.php:20
Something went wrong with that request. Please try again.