Skip to content

Commit 8b1e18d

Browse files
committed
Update language/curl/filesystem/mbstring
1 parent ce88b4e commit 8b1e18d

File tree

10 files changed

+53
-58
lines changed

10 files changed

+53
-58
lines changed

language/predefined/variables/get.xml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: a6d209f4ff71ccba3f1255902827f5df3e092ff9 Maintainer: daijie Status: ready -->
4-
3+
<!-- EN-Revision: f56de7ebe7a1a85ce9e44a2bf6b77b07adfe3ae4 Maintainer: daijie Status: ready -->
4+
<!-- CREDITS: mowangjuanzi -->
55
<refentry role="variable" xml:id="reserved.variables.get" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" annotations="verify_info:false">
66
<refnamediv>
77
<refname>$_GET</refname>
8-
<refpurpose>HTTP GET 变量</refpurpose>
8+
<refpurpose>查询字符串变量</refpurpose>
99
</refnamediv>
1010

1111
<refsect1 role="description">
1212
&reftitle.description;
1313
<para>
14-
通过 URL 参数(又叫 query string)传递给当前脚本的变量的数组。
15-
注意:该数组不仅仅对 method 为 GET 的请求生效,而是会针对所有带 query string 的请求。
14+
通过 URL 参数(也称为查询字符串)传递给当前脚本的变量(关联数组)。需要注意的是,只要存在查询字符串,就会填充此数组,无论 HTTP 请求方法为何。
1615
</para>
1716
</refsect1>
1817

@@ -29,7 +28,7 @@ echo 'Hello ' . htmlspecialchars($_GET["name"]) . '!';
2928
]]>
3029
</programlisting>
3130
<simpara>
32-
假设用户访问的是 http://example.com/?name=Hannes
31+
假设用户访问的是 <literal>http://example.com/?name=Hannes</literal>。
3332
</simpara>
3433
&example.outputs.similar;
3534
<screen>
@@ -46,7 +45,7 @@ Hello Hannes!
4645
&note.is-superglobal;
4746
<note>
4847
<para>
49-
GET 是通过 <function>urldecode</function> 传递的
48+
<varname>$_GET</varname> 中的值会自动通过 <function>urldecode</function> 解码
5049
</para>
5150
</note>
5251
</refsect1>

language/predefined/variables/httpresponseheader.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 3f1cd5121f7c9f8347ca69c8f657fdb24c0f9729 Maintainer: daijie Status: ready -->
3+
<!-- EN-Revision: fcf847c112e36140d1fdf30cc6fc83cb1c4eb297 Maintainer: daijie Status: ready -->
44
<!-- CREDITS: mowangjuanzi -->
55
<refentry role="variable" xml:id="reserved.variables.httpresponseheader" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" annotations="verify_info:false">
66
<refnamediv>
77
<refname>$http_response_header</refname>
88
<refpurpose>HTTP 响应头</refpurpose>
99
</refnamediv>
1010

11+
<refsynopsisdiv>
12+
&warn.deprecated.feature-8-5-0;
13+
<simpara>
14+
使用 <function>http_get_last_response_headers</function> 代替。
15+
</simpara>
16+
</refsynopsisdiv>
17+
1118
<refsect1 role="description">
1219
&reftitle.description;
1320
<para>

language/types/type-juggling.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 3a97501ec4b56ed700facd0163d11faadc58663d Maintainer: Avenger Status: ready -->
3+
<!-- EN-Revision: 87fd768a70bb136ad6ba94699e8c6332e0c115e0 Maintainer: Avenger Status: ready -->
44
<!-- CREDITS: Geogory, dallas, Altair, mowangjuanzi, Luffy -->
55
<sect1 xml:id="language.types.type-juggling">
66
<title>类型转换</title>
@@ -211,7 +211,7 @@
211211

212212
<example>
213213
<title>类型转换为 union 类型中的一个的示例</title>
214-
<programlisting>
214+
<programlisting role="php">
215215
<![CDATA[
216216
<?php
217217
// int|string

reference/curl/constants_curl_setopt.xml

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- EN-Revision: 6d21eef094840a7277af4735b8898f70ef9cd9ba Maintainer: mowangjuanzi Status: partial -->
1+
<!-- EN-Revision: c9888ac6e5c75d00d50f9c2fd741ae3a82a479ec Maintainer: mowangjuanzi Status: partial -->
22
<!-- CREDITS: Luffy -->
33
<variablelist role="constant_list">
44
<title><function>curl_setopt</function></title>
@@ -1381,13 +1381,8 @@
13811381
</term>
13821382
<listitem>
13831383
<para>
1384-
Set a <type>string</type> with the authentication address (identity)
1385-
of a submitted message that is being relayed to another server.
1386-
The address should not be specified within a pair of angled brackets
1387-
(<literal>&gt;&lt;</literal>).
1388-
If an empty <type>string</type> is used then a pair of brackets are sent by cURL
1389-
as required by RFC 2554.
1390-
Available as of cURL 7.25.0.
1384+
设置 <type>string</type>,表示正在转发到另一服务器的提交消息的身份验证地址(身份)。该地址不应包含在尖括号(<literal>&lt;&gt;</literal>)中。如果使用空
1385+
<type>string</type>,则 cURL 会根据 RFC 2554 的要求发送一对括号。自 cURL 7.25.0 起可用。
13911386
</para>
13921387
</listitem>
13931388
</varlistentry>
@@ -1398,13 +1393,9 @@
13981393
</term>
13991394
<listitem>
14001395
<para>
1401-
Set a <type>string</type> with the sender's email address when sending SMTP mail.
1402-
The email address should be specified with angled brackets
1403-
(<literal>&gt;&lt;</literal>) around it,
1404-
which if not specified are added automatically.
1405-
If this parameter is not specified then an empty address is sent
1406-
to the SMTP server which might cause the email to be rejected.
1407-
Available as of cURL 7.20.0.
1396+
在发送 SMTP 邮件时,设置一个包含发件人电子邮件地址的
1397+
<type>string</type>。电子邮件地址应使用尖括号(<literal>&lt;&gt;</literal>)括起来,如果未指定,系统会自动添加。如果未设置此参数,则会向
1398+
SMTP 服务器发送空地址,这可能导致邮件被拒绝。自 cURL 7.20.0 起可用。
14081399
</para>
14091400
</listitem>
14101401
</varlistentry>
@@ -1415,14 +1406,9 @@
14151406
</term>
14161407
<listitem>
14171408
<para>
1418-
Set to an <type>array</type> of <type>string</type>s
1419-
with the recipients to pass to the server in an SMTP mail request.
1420-
Each recipient should be specified within a pair of angled brackets
1421-
(<literal>&gt;&lt;</literal>).
1422-
If an angled bracket is not used as the first character,
1423-
cURL assumes a single email address has been provided
1424-
and encloses that address within brackets.
1425-
Available as of cURL 7.20.0.
1409+
设置为由 <type>string</type> 组成的 <type>array</type>,包含在 SMTP
1410+
邮件请求中传递给服务器的收件人。每个收件人应使用尖括号(<literal>&lt;&gt;</literal>)括起来。如果第一个字符未使用尖括号,cURL
1411+
会假定提供的是单个电子邮件地址,并将该地址用括号括起来。自 cURL 7.20.0 起可用。
14261412
</para>
14271413
</listitem>
14281414
</varlistentry>
@@ -3578,7 +3564,7 @@
35783564
<listitem>
35793565
<para>
35803566
设置要传递给 telnet 协商的由 <type>string</type> 组成的 <type>array</type>。变量应采用
3581-
<literal>&gt;option=value&lt;</literal> 格式。cURL 支持选项 <literal>TTYPE</literal>、<literal>XDISPLOC</literal>
3567+
<literal>&lt;option=value&gt;</literal> 格式。cURL 支持选项 <literal>TTYPE</literal>、<literal>XDISPLOC</literal>
35823568
和 <literal>NEW_ENV</literal>。自 cURL 7.7.0 起可用。
35833569
</para>
35843570
</listitem>

reference/filesystem/functions/parse-ini-file.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: a5346daf2bb2fab250fa03f0f6639a408d0b2240 Maintainer: HonestQiao Status: ready -->
3+
<!-- EN-Revision: bb54309eff8a7d75ead0fdf48cc6dae99dd00367 Maintainer: HonestQiao Status: ready -->
44
<!-- CREDITS: mowangjuanzi, Luffy -->
55
<refentry xml:id="function.parse-ini-file" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -24,6 +24,12 @@
2424
<para>
2525
ini 文件的结构和 &php.ini; 的相同。
2626
</para>
27+
<warning>
28+
<simpara>
29+
此函数不得用于不可信的输入,除非 <parameter>scanner_mode</parameter> 设置为
30+
<constant>INI_SCANNER_RAW</constant>,因为解析后的输出可能包含敏感常量的值,例如存储数据库密码的常量。
31+
</simpara>
32+
</warning>
2733
</refsect1>
2834

2935
<refsect1 role="parameters">

reference/filesystem/functions/parse-ini-string.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 0c9c2dd669fe9395eaa73d487fbd160f9057429a Maintainer: WeijianZhang Status: ready -->
3+
<!-- EN-Revision: bb54309eff8a7d75ead0fdf48cc6dae99dd00367 Maintainer: WeijianZhang Status: ready -->
44
<!-- CREDITS: mowangjuanzi -->
55
<refentry xml:id="function.parse-ini-string" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -22,6 +22,12 @@
2222
<para>
2323
ini 字符串的格式参考 &php.ini;
2424
</para>
25+
<warning>
26+
<simpara>
27+
此函数不得用于不可信的输入,除非 <parameter>scanner_mode</parameter> 设置为
28+
<constant>INI_SCANNER_RAW</constant>,因为解析后的输出可能包含敏感常量的值,例如存储数据库密码的常量。
29+
</simpara>
30+
</warning>
2531
</refsect1>
2632

2733
<refsect1 role="parameters">

reference/mbstring/functions/mb-strrichr.xml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: f63aa0afcde35bf8450e32128295d6e08cd6b120 Maintainer: daijie Status: ready -->
3+
<!-- EN-Revision: 8c262f2df6f585b42b917611a029859c60539e5d Maintainer: daijie Status: ready -->
44
<!-- CREDITS: mowangjuanzi -->
55
<!-- Generated by xml_proto.php v2.4. Found in /scripts directory of phpdoc. -->
66
<refentry xml:id="function.mb-strrichr" xmlns="http://docbook.org/ns/docbook">
@@ -31,15 +31,15 @@
3131
<term><parameter>haystack</parameter></term>
3232
<listitem>
3333
<para>
34-
在该字符串中查找 <parameter>needle</parameter> 的最后出现位置
34+
在该字符串中查找 <parameter>needle</parameter> 的最后出现位置
3535
</para>
3636
</listitem>
3737
</varlistentry>
3838
<varlistentry>
3939
<term><parameter>needle</parameter></term>
4040
<listitem>
4141
<para>
42-
在 <parameter>needle</parameter> 中查找该字符串
42+
在 <parameter>needle</parameter> 中查找该字符串
4343
</para>
4444
</listitem>
4545
</varlistentry>
@@ -56,9 +56,7 @@
5656
<varlistentry>
5757
<term><parameter>encoding</parameter></term>
5858
<listitem>
59-
<para>
60-
使用的字符编码名称。如果省略了,则将使用内部编码。
61-
</para>
59+
&mbstring.encoding.parameter;
6260
</listitem>
6361
</varlistentry>
6462
</variablelist>
@@ -67,8 +65,7 @@
6765
<refsect1 role="returnvalues">
6866
&reftitle.returnvalues;
6967
<para>
70-
返回 <parameter>haystack</parameter> 的一部分。
71-
或者在没有找到 <parameter>needle</parameter> 时返回 &false;
68+
返回 <parameter>haystack</parameter> 的一部分。或者在没有找到 <parameter>needle</parameter> 时返回 &false;
7269
</para>
7370
</refsect1>
7471

reference/mbstring/functions/mb-strripos.xml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 4b72b23513caa3a8bc520d459a0417defc7b3880 Maintainer: daijie Status: ready -->
3+
<!-- EN-Revision: 95d05546430b9e5db225dd42a0d285b870f0da42 Maintainer: daijie Status: ready -->
44
<!-- CREDITS: mowangjuanzi, Luffy -->
55
<!-- Generated by xml_proto.php v2.4. Found in /scripts directory of phpdoc. -->
66
<refentry xml:id="function.mb-strripos" xmlns="http://docbook.org/ns/docbook">
@@ -48,16 +48,14 @@
4848
<term><parameter>offset</parameter></term>
4949
<listitem>
5050
<para>
51-
<parameter>haystack</parameter> 中开始搜索的位置
51+
可以指定从 <parameter>haystack</parameter> 的任意字符位置开始搜索。负值将在 <parameter>haystack</parameter> 结尾前的某个点停止搜索
5252
</para>
5353
</listitem>
5454
</varlistentry>
5555
<varlistentry>
5656
<term><parameter>encoding</parameter></term>
5757
<listitem>
58-
<para>
59-
使用的字符编码名称。如果省略了,则将使用内部编码。
60-
</para>
58+
&mbstring.encoding.parameter;
6159
</listitem>
6260
</varlistentry>
6361
</variablelist>

reference/mbstring/functions/mb-strrpos.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 4b72b23513caa3a8bc520d459a0417defc7b3880 Maintainer: daijie Status: ready -->
3+
<!-- EN-Revision: 95d05546430b9e5db225dd42a0d285b870f0da42 Maintainer: daijie Status: ready -->
44
<!-- CREDITS: mowangjuanzi, Luffy -->
55
<refentry xml:id="function.mb-strrpos" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
66
<refnamediv>
@@ -48,8 +48,7 @@
4848
<term><parameter>offset</parameter></term>
4949
<listitem>
5050
<simpara>
51-
可以用于指定 <type>string</type> 里从任意字符数开始进行搜索。
52-
负数的值将导致搜索会终止于指向 <type>string</type> 末尾的任意点。
51+
可以指定从 <parameter>haystack</parameter> 的任意字符位置开始搜索。负值将在 <parameter>haystack</parameter> 结尾前的某个点停止搜索。
5352
</simpara>
5453
</listitem>
5554
</varlistentry>
@@ -99,7 +98,7 @@
9998
<row>
10099
<entry>8.0.0</entry>
101100
<entry>
102-
已经删除将 <parameter>encoding</parameter> 作为第三个参数而不是偏移量传递
101+
已经删除将 <parameter>encoding</parameter> 作为第三个参数而不是 <parameter>offset</parameter> 传递
103102
</entry>
104103
</row>
105104
&mbstring.changelog.encoding-nullable;

reference/mbstring/functions/mb-strstr.xml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: f63aa0afcde35bf8450e32128295d6e08cd6b120 Maintainer: daijie Status: ready -->
3+
<!-- EN-Revision: 95d05546430b9e5db225dd42a0d285b870f0da42 Maintainer: daijie Status: ready -->
44
<!-- CREDITS: mowangjuanzi -->
55
<!-- Generated by xml_proto.php v2.4. Found in /scripts directory of phpdoc. -->
66
<refentry xml:id="function.mb-strstr" xmlns="http://docbook.org/ns/docbook">
@@ -55,10 +55,7 @@
5555
<varlistentry>
5656
<term><parameter>encoding</parameter></term>
5757
<listitem>
58-
<para>
59-
要使用的字符编码名称。
60-
如果省略该参数,将使用内部字符编码。
61-
</para>
58+
&mbstring.encoding.parameter;
6259
</listitem>
6360
</varlistentry>
6461
</variablelist>

0 commit comments

Comments
 (0)