bug48023.phpt 265 B

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