<?php
namespace One;
abstract class Abs {
public function __toString()
{
return strtolower(get_called_class());
/* Should print test, not abs :P */
}
}
namespace Two;
class Test extends One\Abs
{
}
$x = new Two\Test;
echo $x;
Fatal error: Uncaught Error: Class "Two\One\Abs" not found in /in/43NqJ:14
Stack trace:
#0 {main}
thrown in /in/43NqJ on line 14
Process exited with code 255.
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Fatal error: Uncaught Error: Class 'Two\One\Abs' not found in /in/43NqJ:14
Stack trace:
#0 {main}
thrown in /in/43NqJ on line 14
Process exited with code 255.