<?php
namespace Ref;
interface I
{
const I = 'I';
}
class A implements I
{
const A = 'A';
public function __construct() {}
}
class B extends A
{
const B = 'B';
}
$r = new \ReflectionClass('B');
var_dump($r->getInterfaceNames());
Fatal error: Uncaught ReflectionException: Class "B" does not exist in /in/vrOmn:22
Stack trace:
#0 /in/vrOmn(22): ReflectionClass->__construct('B')
#1 {main}
thrown in /in/vrOmn on line 22
Process exited with code 255.
Fatal error: Uncaught ReflectionException: Class B does not exist in /in/vrOmn:22
Stack trace:
#0 /in/vrOmn(22): ReflectionClass->__construct('B')
#1 {main}
thrown in /in/vrOmn on line 22
Process exited with code 255.
Fatal error: Uncaught exception 'ReflectionException' with message 'Class B does not exist' in /in/vrOmn:22
Stack trace:
#0 /in/vrOmn(22): ReflectionClass->__construct('B')
#1 {main}
thrown in /in/vrOmn on line 22
Process exited with code 255.
Output for 5.2.3 - 5.2.17
Parse error: syntax error, unexpected T_STRING in /in/vrOmn on line 3
Process exited with code 255.