<?php
interface Foo {
function baz($moo);
}
abstract class Bar implements Foo {}
class_alias('Bar', 'Bar53');
eval('abstract class Bar52 extends Bar {}');
class Test53 extends Bar53 { function baz($moo) {} }
class Test52 extends Bar52 { function baz($moo) {} }
var_dump(Test52 instanceof Foo);
var_dump(Test53 instanceof Foo);
Fatal error: Uncaught Error: Undefined constant "Test52" in /in/03SAi:13
Stack trace:
#0 {main}
thrown in /in/03SAi on line 13
Process exited with code 255.
Warning: Use of undefined constant Test52 - assumed 'Test52' (this will throw an Error in a future version of PHP) in /in/03SAi on line 13
bool(false)
Warning: Use of undefined constant Test53 - assumed 'Test53' (this will throw an Error in a future version of PHP) in /in/03SAi on line 14
bool(false)
Notice: Use of undefined constant Test52 - assumed 'Test52' in /in/03SAi on line 13
bool(false)
Notice: Use of undefined constant Test53 - assumed 'Test53' in /in/03SAi on line 14
bool(false)