--TEST-- Reflection Bug #30961 (Wrong linenumber in ReflectionClass getStartLine()) --SKIPIF-- <?php extension_loaded('reflection') or die('skip'); ?> --FILE-- <?php class a { } class b extends a { } $ref1 = new ReflectionClass('a'); $ref2 = new ReflectionClass('b'); echo $ref1->getStartLine() . "\n"; echo $ref2->getStartLine() . "\n"; ?> --EXPECT-- 2 6