From e9760e6d178f99b290237a94b04ca0a30d72fa6b Mon Sep 17 00:00:00 2001 From: Mikhail Alferov Date: Thu, 28 Aug 2025 16:08:08 +0300 Subject: [PATCH 1/8] mb-decode-numericentity.xml Clarify the ValueError conditions --- reference/mbstring/functions/mb-decode-numericentity.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reference/mbstring/functions/mb-decode-numericentity.xml b/reference/mbstring/functions/mb-decode-numericentity.xml index 405bea681f01..375dd22e11b0 100644 --- a/reference/mbstring/functions/mb-decode-numericentity.xml +++ b/reference/mbstring/functions/mb-decode-numericentity.xml @@ -70,7 +70,8 @@ &reftitle.errors; Throws a ValueError if - map is not a list of &integer;s. + map contains any value that is not an + &integer;, &boolean;, &null;, or a numeric &string;. From c18f775e494bcb7a6e551558d42963ef38855d49 Mon Sep 17 00:00:00 2001 From: Mikhail Alferov Date: Thu, 28 Aug 2025 16:11:20 +0300 Subject: [PATCH 2/8] mb-encode-numericentity.xml Clarify the ValueError conditions --- reference/mbstring/functions/mb-encode-numericentity.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reference/mbstring/functions/mb-encode-numericentity.xml b/reference/mbstring/functions/mb-encode-numericentity.xml index 9537bb0dd4b2..170e30113aca 100644 --- a/reference/mbstring/functions/mb-encode-numericentity.xml +++ b/reference/mbstring/functions/mb-encode-numericentity.xml @@ -73,7 +73,8 @@ &reftitle.errors; Throws a ValueError if - map is not a list of &integer;s. + map contains any value that is not an + &integer;, &boolean;, &null;, or a numeric &string;. From d023e393e87fa37d73fba8e23017550d5573eaa2 Mon Sep 17 00:00:00 2001 From: Mikhail Alferov Date: Thu, 28 Aug 2025 16:21:12 +0300 Subject: [PATCH 3/8] Update mb-encode-numericentity.xml --- reference/mbstring/functions/mb-encode-numericentity.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/mbstring/functions/mb-encode-numericentity.xml b/reference/mbstring/functions/mb-encode-numericentity.xml index 170e30113aca..b079b7e41861 100644 --- a/reference/mbstring/functions/mb-encode-numericentity.xml +++ b/reference/mbstring/functions/mb-encode-numericentity.xml @@ -74,7 +74,7 @@ Throws a ValueError if map contains any value that is not an - &integer;, &boolean;, &null;, or a numeric &string;. + &integer;, &float;, &boolean;, &null;, or a numeric &string;. From eda2197d3180d807ae2b4969b67074c238fd68fe Mon Sep 17 00:00:00 2001 From: Mikhail Alferov Date: Thu, 28 Aug 2025 16:21:17 +0300 Subject: [PATCH 4/8] Update mb-decode-numericentity.xml --- reference/mbstring/functions/mb-decode-numericentity.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/mbstring/functions/mb-decode-numericentity.xml b/reference/mbstring/functions/mb-decode-numericentity.xml index 375dd22e11b0..23ed133669be 100644 --- a/reference/mbstring/functions/mb-decode-numericentity.xml +++ b/reference/mbstring/functions/mb-decode-numericentity.xml @@ -71,7 +71,7 @@ Throws a ValueError if map contains any value that is not an - &integer;, &boolean;, &null;, or a numeric &string;. + &integer;, &float;, &boolean;, &null;, or a numeric &string;. From 77037930f8150f08dabeddb26d767b51b1e8dea3 Mon Sep 17 00:00:00 2001 From: Mikhail Alferov Date: Thu, 28 Aug 2025 16:37:00 +0300 Subject: [PATCH 5/8] Update mb-decode-numericentity.xml --- reference/mbstring/functions/mb-decode-numericentity.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/reference/mbstring/functions/mb-decode-numericentity.xml b/reference/mbstring/functions/mb-decode-numericentity.xml index 23ed133669be..ec84d5156043 100644 --- a/reference/mbstring/functions/mb-decode-numericentity.xml +++ b/reference/mbstring/functions/mb-decode-numericentity.xml @@ -71,7 +71,7 @@ Throws a ValueError if map contains any value that is not an - &integer;, &float;, &boolean;, &null;, or a numeric &string;. + &integer;, &float;, &boolean;, &null;, or a numeric string. @@ -89,9 +89,10 @@ 8.4.0 - mb_decode_numericentity now throws a + The mb_decode_numericentity function now throws a ValueError if map - is not a list of &integer;s. + contains any value that is not an + &integer;, &float;, &boolean;, &null;, or a numeric string. &mbstring.changelog.encoding-nullable; From e987636eb361641d55a8d582c854f65d0acdd6c5 Mon Sep 17 00:00:00 2001 From: Mikhail Alferov Date: Thu, 28 Aug 2025 16:37:03 +0300 Subject: [PATCH 6/8] Update mb-encode-numericentity.xml --- reference/mbstring/functions/mb-encode-numericentity.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/reference/mbstring/functions/mb-encode-numericentity.xml b/reference/mbstring/functions/mb-encode-numericentity.xml index b079b7e41861..c0f58a348f17 100644 --- a/reference/mbstring/functions/mb-encode-numericentity.xml +++ b/reference/mbstring/functions/mb-encode-numericentity.xml @@ -74,7 +74,7 @@ Throws a ValueError if map contains any value that is not an - &integer;, &float;, &boolean;, &null;, or a numeric &string;. + &integer;, &float;, &boolean;, &null;, or a numeric string. @@ -92,9 +92,10 @@ 8.4.0 - mb_encode_numericentity now throws a + The mb_encode_numericentity function now throws a ValueError if map - is not a list of &integer;s. + contains any value that is not an + &integer;, &float;, &boolean;, &null;, or a numeric string. &mbstring.changelog.encoding-nullable; From 8710a9e9f0bc0ae9fe3581cbe02a1682390af916 Mon Sep 17 00:00:00 2001 From: Mikhail Alferov Date: Sat, 30 Aug 2025 13:16:47 +0300 Subject: [PATCH 7/8] mb-decode-numericentity.xml fix role of codeblocks --- reference/mbstring/functions/mb-decode-numericentity.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/mbstring/functions/mb-decode-numericentity.xml b/reference/mbstring/functions/mb-decode-numericentity.xml index ec84d5156043..2ec638bc0060 100644 --- a/reference/mbstring/functions/mb-decode-numericentity.xml +++ b/reference/mbstring/functions/mb-decode-numericentity.xml @@ -106,7 +106,7 @@ <parameter>map</parameter> example - + Date: Sat, 30 Aug 2025 13:17:12 +0300 Subject: [PATCH 8/8] mb-encode-numericentity.xml fix role of codeblocks --- reference/mbstring/functions/mb-encode-numericentity.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/mbstring/functions/mb-encode-numericentity.xml b/reference/mbstring/functions/mb-encode-numericentity.xml index c0f58a348f17..bced7bd21320 100644 --- a/reference/mbstring/functions/mb-encode-numericentity.xml +++ b/reference/mbstring/functions/mb-encode-numericentity.xml @@ -109,7 +109,7 @@ <parameter>map</parameter> example - +