From 5b3fc18be040c1d552da1497415b20296163012f Mon Sep 17 00:00:00 2001 From: Yann 'Ze' Richard Date: Mon, 6 Jun 2022 16:28:30 +0200 Subject: [PATCH] Fix GH-1611: mb-internal-encoding() throws ValueError on unknown encoding Closes GH-1613. Signed-off-by: Yann 'Ze' Richard --- .../mbstring/functions/mb-internal-encoding.xml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/reference/mbstring/functions/mb-internal-encoding.xml b/reference/mbstring/functions/mb-internal-encoding.xml index fcc4ee0fe9..00261a2402 100644 --- a/reference/mbstring/functions/mb-internal-encoding.xml +++ b/reference/mbstring/functions/mb-internal-encoding.xml @@ -48,6 +48,15 @@ + + &reftitle.errors; + + As of PHP 8.0.0, a ValueError is thrown if the + value of encoding is an invalid encoding. + Prior to PHP 8.0.0, a E_WARNING was emitted instead. + + + &reftitle.changelog; @@ -60,6 +69,14 @@ &mbstring.changelog.encoding-nullable; + + 8.0.0 + + Now throws a ValueError if + encoding is an invalid encoding. + Previously a E_WARNING was emitted instead. + +