<?php
namespace Foo;
use Foo\Bar as Baz;
class Bar {
public static function getClass()
{
return __CLASS__;
}
public static function getCalledClass() {
return get_called_class();
}
}
class Biz extends Bar {}
var_dump(Baz::CLASS, Baz::getClass(), Giz::CLASS, Biz::getClass(), Biz::getCalledClass(), Biz::CLASS);
Parse error: syntax error, unexpected 'CLASS' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /in/M1QHp on line 18
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_CLASS, expecting T_STRING or T_VARIABLE or '$' in /in/M1QHp on line 18
Process exited with code 255.