1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/spl/tests/bug71204.phpt
2020-07-10 21:05:28 +02:00

20 lines
379 B
PHP

--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