Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (49 sloc) 1.13 KB
--TEST--
Test for nested indirect function call
--INI--
xdebug.enable=1
xdebug.auto_trace=0
xdebug.collect_params=3
xdebug.collect_return=1
xdebug.collect_assignments=0
xdebug.auto_profile=0
xdebug.profiler_enable=0
xdebug.show_mem_delta=0
xdebug.trace_format=0
--FILE--
<?php
$tf = xdebug_start_trace(sys_get_temp_dir() . '/'. uniqid('xdt', TRUE));
class D
{
static function a($x) {
return 'a';
}
static function b($x) {
return 'b';
}
static function c($x) {
return 'c';
}
}
function blaat($a) {
}
$a = blaat("insert blah '".D::a(D::b(D::a(D::c('blah')))));
xdebug_stop_trace();
echo file_get_contents($tf);
unlink($tf);
?>
--EXPECTF--
TRACE START [%d-%d-%d %d:%d:%d]
%w%f %w%d -> D::c('blah') %stest10b.php:19
%w%f %w%d >=> 'c'
%w%f %w%d -> D::a('c') %stest10b.php:19
%w%f %w%d >=> 'a'
%w%f %w%d -> D::b('a') %stest10b.php:19
%w%f %w%d >=> 'b'
%w%f %w%d -> D::a('b') %stest10b.php:19
%w%f %w%d >=> 'a'
%w%f %w%d -> blaat('insert blah \'a') %stest10b.php:19
%w%f %w%d >=> NULL
%w%f %w%d -> xdebug_stop_trace() %stest10b.php:20
%w%f %w%d
TRACE END [%d-%d-%d %d:%d:%d]