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 [internal function]: {closure}('I')
19#2 %s(%d): spl_autoload_call('I')
20#3 {main}
21  thrown in %s on line %d
22