xref: /PHP-8.3/ext/spl/tests/bug71204.phpt (revision d30cd7d7)
1--TEST--
2Bug #71204 (segfault if clean spl_autoload_funcs while autoloading )
3--FILE--
4<?php
5
6spl_autoload_register(function ($name) {
7    spl_autoload_unregister("spl_autoload_call");
8});
9
10spl_autoload_register(function ($name) {
11});
12
13new A();
14?>
15--EXPECTF--
16Fatal error: Uncaught Error: Class "A" not found in %s:%d
17Stack trace:
18#0 {main}
19  thrown in %sbug71204.php on line %d
20