From 06399ddd6393caede0abf85f49495807c9636027 Mon Sep 17 00:00:00 2001 From: Luffy Date: Sat, 25 Jan 2025 08:47:22 +0800 Subject: [PATCH] Sync mbstring and network functions (#963) --- .../functions/mb-decode-numericentity.xml | 5 ++-- .../mbstring/functions/mb-http-input.xml | 5 ++-- .../mbstring/functions/mb-http-output.xml | 2 +- .../network/functions/dns-get-record.xml | 24 ++++--------------- reference/network/functions/long2ip.xml | 10 ++++++-- 5 files changed, 20 insertions(+), 26 deletions(-) diff --git a/reference/mbstring/functions/mb-decode-numericentity.xml b/reference/mbstring/functions/mb-decode-numericentity.xml index 58a378058..b68dba30f 100644 --- a/reference/mbstring/functions/mb-decode-numericentity.xml +++ b/reference/mbstring/functions/mb-decode-numericentity.xml @@ -1,6 +1,6 @@ - + @@ -88,7 +88,8 @@ 8.4.0 如果 map 不是 &integer;s 的列表, - mb_decode_numericentity 现在抛出 ValueError。 + mb_decode_numericentity 现在抛出 + ValueError &mbstring.changelog.encoding-nullable; diff --git a/reference/mbstring/functions/mb-http-input.xml b/reference/mbstring/functions/mb-http-input.xml index 63a617d5b..41b406d14 100644 --- a/reference/mbstring/functions/mb-http-input.xml +++ b/reference/mbstring/functions/mb-http-input.xml @@ -1,6 +1,6 @@ - + @@ -68,7 +68,8 @@ 8.4.0 - 如果 type 无效,mb_http_input 现在抛出 ValueError。 + 如果 type 无效,mb_http_input + 现在抛出 ValueError diff --git a/reference/mbstring/functions/mb-http-output.xml b/reference/mbstring/functions/mb-http-output.xml index 6b16d1188..c32ecca06 100644 --- a/reference/mbstring/functions/mb-http-output.xml +++ b/reference/mbstring/functions/mb-http-output.xml @@ -1,6 +1,6 @@ - + diff --git a/reference/network/functions/dns-get-record.xml b/reference/network/functions/dns-get-record.xml index cb98d8eb9..ca7737ef6 100644 --- a/reference/network/functions/dns-get-record.xml +++ b/reference/network/functions/dns-get-record.xml @@ -1,6 +1,6 @@ - + @@ -48,23 +48,9 @@ 默认情况下,dns_get_record 将会搜索跟 hostname - 关联的任何资源记录。要限制查询,可以指定可选的 type - 选项。可以是以下之一:DNS_ADNS_CNAMEDNS_HINFO, DNS_CAADNS_MXDNS_NSDNS_PTRDNS_SOADNS_TXTDNS_AAAADNS_SRVDNS_NAPTRDNS_A6DNS_ALL - 或 DNS_ANY。 + 关联的任何资源记录。 + 要限制查询,请使用以下之一的 DNS_* 常量。 - - - 因为不同平台间的 libresolv 存在性能差异,DNS_ANY - 不会始终返回每条记录,较慢的 DNS_ALL - 会更可靠的收集所有记录。 - - - - - Windows:不支持 DNS_CAA。没有实现对 - DNS_A6 的支持。 - - @@ -87,7 +73,7 @@ raw - type 将解释为原始 DNS 类型 ID(不能使用 DNS_* + type 将解释为原始 DNS 类型 ID(不能使用 DNS_* 常量)。返回值包含 data 键,需要手动解析。 @@ -141,7 +127,7 @@ - 根据“type”的不同,出现的关联数组的其它键 + 根据 <parameter>type</parameter> 的不同,出现的关联数组的其它键 diff --git a/reference/network/functions/long2ip.xml b/reference/network/functions/long2ip.xml index cbc03b823..44cc41604 100644 --- a/reference/network/functions/long2ip.xml +++ b/reference/network/functions/long2ip.xml @@ -1,6 +1,6 @@ - + @@ -38,7 +38,7 @@ &reftitle.returnvalues; - 返回字符串的互联网 IP 地址,&return.falseforfailure;。 + 以 string 的形式返互联网 IP 地址。 @@ -53,6 +53,12 @@ + + 8.4.0 + + 返回类型从 stringfalse 改为 string。 + + 7.1.0