Skip to content

Commit

Permalink
Added a test case for bug xdebug#360 (which is I think long fixed).
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Sep 26, 2011
1 parent 07c2476 commit 6b60864
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions tests/bug00360.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
--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 2.%s
cmd: %sbug00360.php
part: 1
positions: line

events: Time

fl=%sbug00360.php
fn=func
2 %d

fl=php:internal
fn=php::xdebug_get_profiler_filename
8 %d

0 comments on commit 6b60864

Please sign in to comment.