exception_ignore_args.phpt 413 B

123456789101112131415161718
  1. --TEST--
  2. Exceptions ignoring arguments
  3. --FILE--
  4. <?php
  5. $function = function(string $user, string $pass) {
  6. throw new Exception();
  7. };
  8. ini_set("zend.exception_ignore_args", 1);
  9. $function("secrets", "arewrong");
  10. ?>
  11. --EXPECTF--
  12. Fatal error: Uncaught Exception in %sexception_ignore_args.php:3
  13. Stack trace:
  14. #0 %sexception_ignore_args.php(8): {closure}()
  15. #1 {main}
  16. thrown in %sexception_ignore_args.php on line 3