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