1--TEST--
2Classes can only be used once they are fully linked
3--FILE--
4<?php
5
6spl_autoload_register(function($class) {
7    echo new ReflectionClass(A::class), "\n";
8});
9
10class A implements I {
11}
12
13?>
14--EXPECTF--
15Fatal error: Uncaught ReflectionException: Class "A" does not exist in %s:%d
16Stack trace:
17#0 %s(%d): ReflectionClass->__construct('A')
18#1 %s(%d): {closure}('I')
19#2 {main}
20  thrown in %s on line %d
21