|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-28 21:20 UTC] sniper@php.net
[2005-03-01 09:39 UTC] michiel at trendserver dot nl
[2005-03-30 23:10 UTC] tony2001@php.net
[2005-06-08 08:49 UTC] dmitry@php.net
[2005-06-17 10:34 UTC] michiel at trendserver dot nl
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 03:00:01 2025 UTC |
Description: ------------ The Reflection API has a (minor) bug regarding the getStartLine() function in ReflectionClass. When the reflected class is not a subclass and does not implement any interfaces, the result of getStartLine() is one line off. Reproduce code: --------------- <? class a { } class b extends a { } $ref1 = new ReflectionClass('a'); $ref2 = new ReflectionClass('b'); echo $ref1->getStartLine() . "\n"; echo $ref2->getStartLine() . "\n"; ?> Expected result: ---------------- 2 6 Actual result: -------------- 3 6