bug71236.phpt 410 B

1234567891011121314151617181920212223
  1. --TEST--
  2. Bug #71236: Second call of spl_autoload_register() does nothing if it has no arguments
  3. --FILE--
  4. <?php
  5. spl_autoload_register(function ($class) {});
  6. spl_autoload_register();
  7. var_dump(spl_autoload_functions());
  8. ?>
  9. --EXPECT--
  10. array(2) {
  11. [0]=>
  12. object(Closure)#1 (1) {
  13. ["parameter"]=>
  14. array(1) {
  15. ["$class"]=>
  16. string(10) "<required>"
  17. }
  18. }
  19. [1]=>
  20. string(12) "spl_autoload"
  21. }