xref: /PHP-8.0/ext/spl/tests/bug48023.phpt (revision d30cd7d7)
1--TEST--
2Bug #48023 (spl_autoload_register didn't addref closures)
3--FILE--
4<?php
5spl_autoload_register(function(){});
6
7new Foo;
8
9?>
10===DONE===
11--EXPECTF--
12Fatal error: Uncaught Error: Class "Foo" not found in %s:%d
13Stack trace:
14#0 {main}
15  thrown in %s on line %d
16