Skip to content

Commit 65c3c0b

Browse files
committedJan 29, 2024
Update install/classobj/info
1 parent c155e25 commit 65c3c0b

File tree

7 files changed

+46
-86
lines changed

7 files changed

+46
-86
lines changed
 

‎appendices/migration71/other-changes.xml

+3-8
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ Warning: A non-numeric value encountered in %s on line %d
4242
<title>八进制转义序列溢出时发出警告</title>
4343

4444
<para>
45-
Previously, 3-octet octal string escape sequences would overflow silently.
46-
Now, they will still overflow, but <constant>E_WARNING</constant> will be
47-
emitted.
45+
以前,3 字节的八进制字符串转义序列会默默溢出。现在,仍然会溢出,但会发出 <constant>E_WARNING</constant> 警告。
4846
</para>
4947

5048
<informalexample>
@@ -68,11 +66,8 @@ string(1) "@"
6866
<title><literal>$this</literal> 不一致的修正</title>
6967

7068
<para>
71-
Whilst <literal>$this</literal> is considered a special variable in PHP, it
72-
lacked proper checks to ensure it wasn't used as a variable name or
73-
reassigned. This has now been rectified to ensure that
74-
<literal>$this</literal> cannot be a user-defined variable, reassigned to a
75-
different value, or be globalised.
69+
虽然在 PHP 中将 <literal>$this</literal> 视为特殊变量,但它缺乏适当的检查来确保不会用作变量名或重新分配。现在已对此进行纠正,以确保
70+
<literal>$this</literal> 不能是用户定义的变量、重新分配给不同的值或全局化。
7671
</para>
7772
</sect2>
7873

‎extensions.ent

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Entities for the categorized extension list, so it does not need
77
to be translated, and thus it is not going to be outdated.
88
-->
9-
<!ENTITY extcat.intro '<title xmlns="http://docbook.org/ns/docbook">扩展库列表归类</title>
9+
<!ENTITY extcat.intro '<title xmlns="http://docbook.org/ns/docbook">扩展库列表/归类</title>
1010
<para xmlns="http://docbook.org/ns/docbook">本附录将 PHP 手册中的 150
1111
多个扩展库以不同标准分类。</para>'>
1212

‎install/ini.xml

+19-63
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 4eeb07225f615fcde68cbefb84df2fc9bf278f1f Maintainer: dallas Status: ready -->
4-
<!-- Reviewed: yes -->
5-
<chapter xml:id="configuration" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
3+
<!-- EN-Revision: 15841d188475e59c105f57c9022873f2cd7467b5 Maintainer: dallas Status: ready -->
4+
<!-- CREDITS: mowangjuanzi -->
5+
<chapter xml:id="configuration" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
66
<title>运行时配置</title>
7-
7+
88
<sect1 xml:id="configuration.file">
99
<title>配置文件</title>
10-
10+
1111
<simpara>
1212
配置文件(&php.ini;)在 PHP 启动时被读取。对于服务器模块版本的 PHP,仅在 web
1313
服务器启动时读取一次。对于
@@ -192,17 +192,15 @@ $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php
192192
</informalexample>
193193
</sect2>
194194
</sect1>
195-
195+
196196
<sect1 xml:id="configuration.file.per-user">
197197
<title>.user.ini 文件</title>
198-
198+
199199
<simpara>
200200
PHP 支持基于每个目录的 INI 文件配置。此类文件
201201
<emphasis>仅</emphasis>被 CGI/FastCGI SAPI 处理。此功能使得 PECL 的 htscanner
202202
扩展作废。如果你的 PHP 以模块化运行在 Apache 里,则用 &htaccess; 文件有同样效果。
203203
</simpara>
204-
205-
206204

207205
<simpara>
208206
除了主 &php.ini; 之外,PHP 还会在每个目录下扫描 INI
@@ -215,38 +213,36 @@ $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php
215213
和 <constant>INI_USER</constant> 模式的 INI
216214
设置可被识别。
217215
</simpara>
218-
219-
220216

221217
<simpara>
222218
两个新的 INI 指令,
223219
<link linkend="ini.user-ini.filename">user_ini.filename</link> 和
224220
<link linkend="ini.user-ini.cache-ttl">user_ini.cache_ttl</link>
225221
控制着用户 INI 文件的使用。
226222
</simpara>
227-
223+
228224
<simpara>
229225
<link linkend="ini.user-ini.filename">user_ini.filename</link> 设定了 PHP
230226
会在每个目录下搜寻的文件名;如果设定为空字符串则 PHP
231227
不会搜寻。默认值是 <literal>.user.ini</literal>。
232228
</simpara>
233-
229+
234230
<simpara>
235231
<link linkend="ini.user-ini.cache-ttl">user_ini.cache_ttl</link> 控制着重新读取用户
236232
INI 文件的间隔时间。默认是 300 秒(5 分钟)。
237233
</simpara>
238234
</sect1>
239-
235+
240236
<sect1 xml:id="configuration.changes.modes">
241237
<title>配置可被设定范围</title>
242-
238+
243239
<para>
244240
这些模式决定着一个 PHP
245241
的指令在何时何地,是否能够被设定。手册中的每个指令都有其所属的模式。例如有些指令可以在
246242
PHP 脚本中用 <function>ini_set</function> 来设定,而有些则只能在
247243
&php.ini;&httpd.conf; 中。
248244
</para>
249-
245+
250246
<para>
251247
例如
252248
<link linkend="ini.output-buffering">output_buffering</link>
@@ -258,48 +254,17 @@ $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php
258254
<constant>INI_ALL</constant> 因而就可以在任何地方被设定,包括
259255
<function>ini_set</function>。
260256
</para>
261-
257+
262258
<para>
263259
<table>
264-
<title>INI_* 模式的定义</title>
265-
<tgroup cols="3">
266-
<thead>
267-
<row>
268-
<entry>模式</entry>
269-
<entry>含义</entry>
270-
</row>
271-
</thead>
272-
<tbody>
273-
<row>
274-
<entry><constant>INI_USER</constant></entry>
275-
<entry>
276-
可在用户脚本(例如 <function>ini_set</function>)或
277-
<link linkend="configuration.changes.windows">Windows 注册表</link>以及 &user-ini; 中设定
278-
</entry>
279-
</row>
280-
<row>
281-
<entry><constant>INI_PERDIR</constant></entry>
282-
<entry>可在 &php.ini;&htaccess;&httpd.conf; 中设定</entry>
283-
</row>
284-
<row>
285-
<entry><constant>INI_SYSTEM</constant></entry>
286-
<entry>可在 &php.ini;&httpd.conf; 中设定</entry>
287-
</row>
288-
<row>
289-
<entry><constant>INI_ALL</constant></entry>
290-
<entry>可在任何地方设定</entry>
291-
</row>
292-
</tbody>
293-
</tgroup>
260+
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('constant.ini-mode')/*)"><xi:fallback/></xi:include>
294261
</table>
295262
</para>
296263
</sect1>
297-
298-
299-
264+
300265
<sect1 xml:id="configuration.changes">
301266
<title>怎样修改配置设定</title>
302-
267+
303268
<sect2 xml:id="configuration.changes.apache">
304269
<title>PHP 运行于 Apache 模块方式</title>
305270
<simpara>
@@ -308,15 +273,15 @@ $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php
308273
文件中的指令来修改 PHP 的配置设定。需要有“AllowOverride
309274
Options”或“AllowOverride All”权限才可以。
310275
</simpara>
311-
276+
312277
<para>
313278
有几个 Apache 指令可以使用户在 Apache
314279
配置文件内部修改 PHP 的配置。哪些指令属于
315-
<constant>INI_ALL</constant><constant>INI_PERDIR</constant>
280+
<constant>INI_ALL</constant><constant>INI_PERDIR</constant>
316281
或 <constant>INI_SYSTEM</constant> 中的哪一个,请参考附录中的
317282
<link linkend="ini.list">php.ini 配置选项列表</link>。
318283
</para>
319-
284+
320285
<para>
321286
<variablelist>
322287
<varlistentry>
@@ -414,8 +379,6 @@ $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php
414379
</para>
415380
</caution>
416381
</sect2>
417-
418-
419382

420383
<sect2 xml:id="configuration.changes.windows">
421384
<title>通过 Windows 注册表修改 PHP 配置</title>
@@ -433,11 +396,6 @@ $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php
433396
的值就不行。因为这些配置对于每次请求来说是只读的。
434397
</simpara>
435398
</sect2>
436-
437-
438-
439-
440-
441399

442400
<sect2 xml:id="configuration.changes.other">
443401
<title>其它接口下的 PHP</title>
@@ -454,8 +412,6 @@ $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php
454412
</para>
455413
</sect2>
456414
</sect1>
457-
458-
459415

460416
</chapter>
461417

‎language-snippets.ent

+12-1
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: 56509d07ae636f076057f55bbb2572ab7b7a39eb Maintainer: Gregory Status: ready -->
3+
<!-- EN-Revision: 21e1338e9721534c00085ff3cff25e2dd2e84dc9 Maintainer: Gregory Status: ready -->
44
<!-- CREDITS: dallas, mowangjuanzi, Luffy -->
55
<!-- 请保持此文件与英文文件中相应的每个 ENTITY 行号一一对应以便于对照,修改与更新! -->
66

@@ -1615,6 +1615,17 @@ It is strongly recommended to avoid timezone abbreviations.
16151615
of the <link linkend="libxml.constants">libxml option constants</link>.
16161616
</para>'>
16171617

1618+
<!ENTITY dom.parameters.register_node_ns '<varlistentry xmlns="http://docbook.org/ns/docbook">
1619+
<term><parameter>registerNodeNS</parameter></term>
1620+
<listitem>
1621+
<para>
1622+
Whether to automatically register the in-scope namespace prefixes of the context node to the <classname>DOMXPath</classname> object.
1623+
This can be used to avoid needing to call <methodname>DOMXPath::registerNamespace</methodname> manually for each in-scope namespaces.
1624+
When a namespace prefix conflict exists, only the nearest descendant namespace prefix is registered.
1625+
</para>
1626+
</listitem>
1627+
</varlistentry>'>
1628+
16181629
<!ENTITY dom.errors.hierarchy.parent '<varlistentry xmlns="http://docbook.org/ns/docbook">
16191630
<term><constant>DOM_HIERARCHY_REQUEST_ERR</constant></term>
16201631
<listitem>

‎reference/classobj/functions/property-exists.xml

+2-2
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: 6846ebb4e33d51faee4a1e99c241a7a24861e0e4 Maintainer: HonestQiao Status: ready -->
3+
<!-- EN-Revision: a4fb7f59310a598b8cb8ca1daa47e557f32ae66e Maintainer: HonestQiao Status: ready -->
44
<!-- CREDITS: mowangjuanzi -->
55
<refentry xml:id="function.property-exists" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -51,7 +51,7 @@
5151
<refsect1 role="returnvalues">
5252
&reftitle.returnvalues;
5353
<para>
54-
如果属性存在则返回 &true;,不存在则返回 &false;如果发生错误则返回 &null;
54+
如果属性存在则返回 &true;,不存在则返回 &false;
5555
</para>
5656
</refsect1>
5757

‎reference/info/constants.xml

+6-6
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: 05c845a6de8dd7e23a9ed12ca2f9f9744f05ff70 Maintainer: daijie Status: ready -->
3+
<!-- EN-Revision: 87663748fbb51015be41d55bbd7f7d000e5aae3b Maintainer: daijie Status: ready -->
44
<!-- CREDITS: Luffy, mowangjuanzi -->
55
<appendix xml:id="info.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
66
&reftitle.constants;
@@ -149,7 +149,7 @@
149149
</tgroup>
150150
</table>
151151

152-
<table>
152+
<table xml:id="constant.ini-mode">
153153
<title>INI 模式常量</title>
154154
<tgroup cols="2">
155155
<thead>
@@ -159,7 +159,7 @@
159159
</row>
160160
</thead>
161161
<tbody>
162-
<row xml:id="constant.ini-user">
162+
<row>
163163
<entry>
164164
<constant>INI_USER</constant>
165165
(<type>int</type>)
@@ -169,7 +169,7 @@
169169
注册表</link>中设置条目。可以在 &user-ini; 中设置条目
170170
</entry>
171171
</row>
172-
<row xml:id="constant.ini-perdir">
172+
<row>
173173
<entry>
174174
<constant>INI_PERDIR</constant>
175175
(<type>int</type>)
@@ -178,7 +178,7 @@
178178
可以在 &php.ini;&htaccess;&httpd.conf;&user-ini; 中设置条目
179179
</entry>
180180
</row>
181-
<row xml:id="constant.ini-system">
181+
<row>
182182
<entry>
183183
<constant>INI_SYSTEM</constant>
184184
(<type>int</type>)
@@ -187,7 +187,7 @@
187187
可以在 &php.ini;&httpd.conf; 中设置条目
188188
</entry>
189189
</row>
190-
<row xml:id="constant.ini-all">
190+
<row>
191191
<entry>
192192
<constant>INI_ALL</constant>
193193
(<type>int</type>)

‎reference/mail/functions/mail.xml

+3-5
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,7 @@ mail('caffeinated@example.com', 'My Subject', $message);
211211
<example>
212212
<title>使用额外标头发送邮件</title>
213213
<para>
214-
The addition of basic headers, telling the MUA
215-
the From and Reply-To addresses:
214+
添加基本 header,告诉 MUA 发件人和回复地址:
216215
</para>
217216
<programlisting role="php">
218217
<![CDATA[
@@ -232,8 +231,7 @@ mail($to, $subject, $message, $headers);
232231
<example>
233232
<title>使用 <type>array</type> 形式的额外标头发送邮件</title>
234233
<para>
235-
This example sends the same mail as the example immediately above, but
236-
passes the additional headers as array (available as of PHP 7.2.0).
234+
此示例与上面示例发送邮件相同,但将附加 header 作为数组传递(自 PHP 7.2.0 起可用)。
237235
</para>
238236
<programlisting role="php">
239237
<![CDATA[
@@ -253,7 +251,7 @@ mail($to, $subject, $message, $headers);
253251
</programlisting>
254252
</example>
255253
<example>
256-
<title>Sending mail with an additional command line parameter.</title>
254+
<title>使用附加命令行参数发送邮件。</title>
257255
<para>
258256
The <parameter>additional_params</parameter> parameter
259257
can be used to pass an additional parameter to the program configured

0 commit comments

Comments
 (0)
Please sign in to comment.