summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug71204.phpt
blob: 8d1c721c100b766755b79e980e49cf6a72447121 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Bug #71204 (segfault if clean spl_autoload_funcs while autoloading )
--FILE--
<?php

spl_autoload_register(function ($name) {
    spl_autoload_unregister("spl_autoload_call");
});

spl_autoload_register(function ($name) {
});

new A();
?>
--EXPECTF--
Fatal error: Uncaught Error: Class "A" not found in %s:%d
Stack trace:
#0 {main}
  thrown in %sbug71204.php on line %d