Skip to content

Commit 2ef3905

Browse files
authored
Update
1 parent 8f964dc commit 2ef3905

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

language-snippets.ent

+3-3
Original file line numberDiff line numberDiff line change
@@ -1682,7 +1682,7 @@ It is strongly recommended to avoid timezone abbreviations.
16821682
<!ENTITY dom.tokenlist.errors '<itemizedlist xmlns="http://docbook.org/ns/docbook">
16831683
<listitem>
16841684
<simpara>
1685-
如果 token 包含任何 null 字节,抛出 <exceptionname>ValueError</exceptionname>。
1685+
如果 token 包含 null 字节,抛出 <exceptionname>ValueError</exceptionname>。
16861686
</simpara>
16871687
</listitem>
16881688
<listitem>
@@ -1693,7 +1693,7 @@ It is strongly recommended to avoid timezone abbreviations.
16931693
</listitem>
16941694
<listitem>
16951695
<simpara>
1696-
如果 token 包含任意 ASCII 空格,抛出 code 为 <constant>Dom\INVALID_CHARACTER_ERR</constant>
1696+
如果 token 包含 ASCII 空格,抛出 code 为 <constant>Dom\INVALID_CHARACTER_ERR</constant>
16971697
的 <exceptionname>Dom\DOMException</exceptionname>。
16981698
</simpara>
16991699
</listitem>
@@ -2698,7 +2698,7 @@ Windows 环境下的 Apache 配置文件中添加路径值时,所有的反斜
26982698
<varname linkend="streamwrapper.props.context">streamWrapper::$context</varname>
26992699
会被改变。</para></note>'>
27002700

2701-
<!ENTITY stream.bucket.param '<parameter>bucket</parameter> 现在期望 <classname>StreamBucket</classname> 实例;之前是<classname>stdClass</classname>。'>
2701+
<!ENTITY stream.bucket.param '<parameter>bucket</parameter> 现在期望 <classname>StreamBucket</classname> 实例;之前期望 <classname>stdClass</classname>。'>
27022702
<!ENTITY stream.bucket.return '此函数现在返回 <classname>StreamBucket</classname> 实例;之前返回 <classname>stdClass</classname>。'>
27032703

27042704
<!-- Gmagick -->

reference/filter/functions/filter-var-array.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</methodsynopsis>
1919
<simpara>
2020
使用 <constant>FILTER_VALIDATE_<replaceable>*</replaceable></constant> 验证过滤器、<constant>FILTER_SANITIZE_<replaceable>*</replaceable></constant>
21-
清理过滤器或自定义过滤器过滤关联 &array; 的值。
21+
清理过滤器或自定义过滤器来过滤关联 &array; 的值。
2222
</simpara>
2323
</refsect1>
2424

@@ -37,11 +37,11 @@
3737
<term><parameter>options</parameter></term>
3838
<listitem>
3939
<simpara>
40-
要么是选项的关联 <type>array</type>,或应用于每个条目的过滤器,可以是使用 <constant>FILTER_VALIDATE_<replaceable>*</replaceable></constant>
41-
常量的验证过滤器,也可以是使用 <constant>FILTER_SANITIZE_<replaceable>*</replaceable></constant>常量的清理过滤器。
40+
要么是选项的关联 <type>array</type>,要么是应用于每个条目的过滤器,可以是使用 <constant>FILTER_VALIDATE_<replaceable>*</replaceable></constant>
41+
常量的验证过滤器,也可以是使用 <constant>FILTER_SANITIZE_<replaceable>*</replaceable></constant> 常量的清理过滤器。
4242
</simpara>
4343
<simpara>
44-
选项数组是关联数组,其中 key 对应于数据 <parameter>array</parameter>中的键,而关联的值要么是应用于该条目的过滤器,要么是描述如何以及应用哪个过滤器到该条目的关联数组。
44+
选项数组是关联数组,其中 key 对应于数据 <parameter>array</parameter> 中的键,而关联的值要么是应用于该条目的过滤器,要么是描述如何以及应用哪个过滤器到该条目的关联数组。
4545
</simpara>
4646
<simpara>
4747
描述如何应用过滤器的关联数组必须包含 <literal>'filter'</literal>

reference/filter/functions/filter-var.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@
5858
<term><parameter>options</parameter></term>
5959
<listitem>
6060
<simpara>
61-
可以是选项的关联 <type>array</type>,也可以是过滤器 flag 常量
61+
要么是选项的关联 <type>array</type>,要么是过滤器 flag 常量
6262
<constant>FILTER_FLAG_<replaceable>*</replaceable></constant> 的位掩码。
6363
</simpara>
6464
<simpara>
65-
如果 <parameter>filter</parameter> 接受选项,则可以使用数组的 <literal>"flags"</literal>
65+
如果 <parameter>filter</parameter> 接受选项(option),则可以使用数组的 <literal>"flags"</literal>
6666
字段提供 flag。
6767
</simpara>
6868
</listitem>
@@ -74,7 +74,7 @@
7474
&reftitle.returnvalues;
7575
<simpara>
7676
成功时返回过滤后的数据。失败时返回 &false;,除非使用 <constant>FILTER_NULL_ON_FAILURE</constant>
77-
flag,在这种情况下返回 &null;
77+
flag,在这种情况下会返回 &null;
7878
</simpara>
7979
</refsect1>
8080

@@ -158,7 +158,7 @@ bool(false)
158158
</example>
159159

160160
<example>
161-
<title>直接或者通过 <type>array</type> 提供 flag</title>
161+
<title>直接提供或者通过 <type>array</type> 提供 flag</title>
162162
<programlisting role="php">
163163
<![CDATA[
164164
<?php

0 commit comments

Comments
 (0)