From f8aae14464c3b7b93a94d1bb0cc22c3be6e8a3de Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 2 Aug 2022 12:21:48 +0200 Subject: [PATCH] Force enable `AssertionError` for assertion failures --- wcfsetup/install/files/lib/core.functions.php | 1 + 1 file changed, 1 insertion(+) 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']); -- 2.20.1