With the introduction of the `\SensitiveParameter` attribute in PHP sensitive
values in stack traces should be sanitized and administrators already have the
capability of disabling the public printing of the stack trace.
Force enable the collection of stack frame arguments for exceptions to ease
debugging.
set_exception_handler([WCF::class, 'handleException']);
// set php error handler
set_error_handler([WCF::class, 'handleError'], E_ALL);
+
+ if (PHP_VERSION_ID >= 80200) {
+ @ini_set('zend.exception_ignore_args', 0);
+ }
+
// set shutdown function
register_shutdown_function([WCF::class, 'destruct']);
// set autoload function