mirror of
https://github.com/php/php-src.git
synced 2024-12-17 22:09:12 +08:00
21 lines
331 B
PHP
21 lines
331 B
PHP
--TEST--
|
|
Reflection Bug #30961 (Wrong linenumber in ReflectionClass getStartLine())
|
|
--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
|