<?php
abstract class A {
private function f() {}
abstract protected function b();
abstract public function c();
}
abstract class B extends A {
protected function b(){}
public function c(){}
}
$ref = new ReflectionClass("B");
var_dump($ref->getMethods(ReflectionMethod::IS_ABSTRACT));
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; B has a deprecated constructor in /in/Aa768 on line 9
array(0) {
}
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.2
Fatal error: Undefined class constant 'IS_ABSTRACT' in /in/Aa768 on line 15
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_CLASS in /in/Aa768 on line 3
Process exited with code 255.