bug51827.phpt 367 B

12345678910111213141516171819
  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. --EXPECTF--
  13. int(1)
  14. Warning: explode() expects at least 2 parameters, 0 given in Unknown on line %d