- var_dump: documentation ( source)
- ini_set: documentation ( source)
<?php
$function = function(string $user, string $pass) {
throw new Exception();
};
try {
$function("secrets", "arewrong");
} catch (\Throwable $e) {
var_dump($e->getTrace()[0]);
}
ini_set("zend.exception_ignore_args", 1);
try {
$function("secrets", "arewrong");
} catch (\Throwable $e) {
var_dump($e->getTrace()[0]);
}