From ea3be8874292d3f3aa4d0808be773dfccbf0fedd Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Wed, 6 Jul 2022 17:22:50 +0200 Subject: [PATCH] Enable intl.use_exceptions in debug mode --- src/Symfony/Component/ErrorHandler/Debug.php | 1 + src/Symfony/Component/Runtime/Internal/BasicErrorHandler.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Symfony/Component/ErrorHandler/Debug.php b/src/Symfony/Component/ErrorHandler/Debug.php index 343a35a77b11b..5c8b60101bb69 100644 --- a/src/Symfony/Component/ErrorHandler/Debug.php +++ b/src/Symfony/Component/ErrorHandler/Debug.php @@ -33,6 +33,7 @@ public static function enable(): ErrorHandler ini_set('assert.active', 1); ini_set('assert.warning', 0); ini_set('assert.exception', 1); + ini_set('intl.use_exceptions', 1); DebugClassLoader::enable(); diff --git a/src/Symfony/Component/Runtime/Internal/BasicErrorHandler.php b/src/Symfony/Component/Runtime/Internal/BasicErrorHandler.php index 3c97cba4baf8d..b01051b2aced9 100644 --- a/src/Symfony/Component/Runtime/Internal/BasicErrorHandler.php +++ b/src/Symfony/Component/Runtime/Internal/BasicErrorHandler.php @@ -35,6 +35,7 @@ public static function register(bool $debug): void ini_set('assert.warning', 0); ini_set('assert.exception', 1); } + ini_set('intl.use_exceptions', 1); set_error_handler(new self()); }