View Issue Details

IDProjectCategoryView StatusLast Update
0000699XdebugUncategorizedpublic2011-07-04 14:50
Reporterderick Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version2.2dev 
Target Version2.2dev 
Summary0000699: Xdebug gets the filename wrong for the countable interface
Description

In trace files, the line number for the correct call line is used (22), but the SomeClass->count() is run from the wrong file (should be test.php still).

0.0006     677560     -> count(class SomeClass { private $data = array (0 => 'foobar') }) /tmp/phpunit/test.php:22
0.0007     677560       -> SomeClass->count() /tmp/phpunit/SomeClass.php:22
0.0007     677680         -> count(array (0 => 'foobar')) /tmp/phpunit/SomeClass.php:33
Steps To Reproduce

See the test case in the code repository.

TagsNo tags attached.
Operating System
PHP Version5.3-dev

Activities

derick

2011-07-04 14:50

administrator   ~0001759

Fixed in master and xdebug_2_1: https://github.com/derickr/xdebug/commit/4b4d23fdf5455142065a859d6723e0b75b0f7203