From: Tim Düsterhus Date: Tue, 2 Aug 2022 10:21:48 +0000 (+0200) Subject: Force enable `AssertionError` for assertion failures X-Git-Tag: 6.0.0_Alpha_1~1090^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f8aae14464c3b7b93a94d1bb0cc22c3be6e8a3de;p=GitHub%2FWoltLab%2FWCF.git Force enable `AssertionError` for assertion failures --- diff --git a/wcfsetup/install/files/lib/core.functions.php b/wcfsetup/install/files/lib/core.functions.php index bf5f093c86..0d3379935d 100644 --- a/wcfsetup/install/files/lib/core.functions.php +++ b/wcfsetup/install/files/lib/core.functions.php @@ -16,6 +16,7 @@ namespace { if (PHP_VERSION_ID >= 80200) { @ini_set('zend.exception_ignore_args', 0); } + @ini_set('assert.exception', 1); // set shutdown function register_shutdown_function([WCF::class, 'destruct']);