<?php
namespace OMFG\OMG;
abstract class Abs {
public function __toString()
{
return strtolower(get_called_class());
/* Should print test, not abs :P */
}
}
namespace HERRO;
class Test extends \OMFG\OMG\Abs
{
}
$x = new Herro\Test;
echo $x;
Fatal error: Uncaught Error: Class "HERRO\Herro\Test" not found in /in/57hF6:18
Stack trace:
#0 {main}
thrown in /in/57hF6 on line 18
Process exited with code 255.
Fatal error: Uncaught Error: Class 'HERRO\Herro\Test' not found in /in/57hF6:18
Stack trace:
#0 {main}
thrown in /in/57hF6 on line 18
Process exited with code 255.