Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (25 sloc) 432 Bytes
--TEST--
Test for bug #360: Function line number in profile not correct
--INI--
xdebug.profiler_enable=1
--FILE--
<?php
function func(){
1+1;
}
func();
echo file_get_contents(xdebug_get_profiler_filename());
?>
--EXPECTF--
version: 1
creator: xdebug %d.%s (PHP %s)
cmd: %sbug00360.php
part: 1
positions: line
events: Time
fl=(1) %sbug00360.php
fn=(1) func
2 %d
fl=(2) php:internal
fn=(2) php::xdebug_get_profiler_filename
8 %d
Jump to Line
Something went wrong with that request. Please try again.