Disable `zend.exception_ignore_args` for PHP 8.2 once WCF's exception handler is...
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 11 Jul 2022 10:18:01 +0000 (12:18 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 11 Jul 2022 10:18:01 +0000 (12:18 +0200)
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.

wcfsetup/install/files/lib/core.functions.php

index 8190bd7dd0bd1ffbbed9aae57b4e1624c552bd00..bf5f093c86683bb3ae8651a7ccfb60097e8b47fe 100644 (file)
@@ -12,6 +12,11 @@ namespace {
        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