mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
19 lines
413 B
PHP
19 lines
413 B
PHP
--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
|