bug51827.phpt 497 B

1234567891011121314151617181920212223
  1. --TEST--
  2. Bug #51827 (Bad warning when register_shutdown_function called with wrong num of parameters)
  3. --FILE--
  4. <?php
  5. function abc() {
  6. var_dump(1);
  7. }
  8. register_shutdown_function('timE');
  9. register_shutdown_function('ABC');
  10. register_shutdown_function('exploDe');
  11. ?>
  12. --EXPECT--
  13. int(1)
  14. Fatal error: Uncaught ArgumentCountError: explode() expects at least 2 arguments, 0 given in [no active file]:0
  15. Stack trace:
  16. #0 [internal function]: explode()
  17. #1 {main}
  18. thrown in [no active file] on line 0