- Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.17
- Parse error: syntax error, unexpected ')' in /in/o96ch on line 24
Process exited with code 255.
<?php
class B extends A
{
const A = 'a';
}
class C extends B
{
const B = 'b';
}
abstract class A
{
private static $constants = array();
public static function get()
{
self::resolve();
}
private static function resolve()
{
if (empty()
$r = new ReflectionClass(get_called_class());
var_dump($r->getConstants());
}
}
$arr = array(false);
var_dump(in_array(false, $arr, true));