Force enable `AssertionError` for assertion failures
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 2 Aug 2022 10:21:48 +0000 (12:21 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 2 Aug 2022 10:21:48 +0000 (12:21 +0200)
wcfsetup/install/files/lib/core.functions.php

index bf5f093c86683bb3ae8651a7ccfb60097e8b47fe..0d3379935dc312aad63335d1f25c516575702b48 100644 (file)
@@ -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']);