Skip to content

Commit cca949e

Browse files
committed
Update install/errorfunc
1 parent da9f47d commit cca949e

File tree

4 files changed

+365
-284
lines changed

4 files changed

+365
-284
lines changed

install/pecl.xml

Lines changed: 34 additions & 34 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: 9e2d8231b5d8a3795b365c6770fab288e59e6249 Maintainer: dallas Status: ready -->
3+
<!-- EN-Revision: 111535af69b070980330fe83ed2eab5ca759c73d Maintainer: dallas Status: ready -->
44
<!-- CREDITS: mowangjuanzi -->
55
<chapter xml:id="install.pecl" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
66
<title>PECL 扩展安装</title>
@@ -80,11 +80,11 @@
8080
<link xlink:href="&url.php.svn;pecl/">&url.php.svn;pecl/</link>。要直接从
8181
<acronym>SVN</acronym> 中下载,用以下命令:
8282
</simpara>
83-
<para>
84-
<screen>
83+
<screen>
84+
<![CDATA[
8585
$ svn checkout https://svn.php.net/repository/pecl/extname/trunk extname
86-
</screen>
87-
</para>
86+
]]>
87+
</screen>
8888
</listitem>
8989
<listitem>
9090
<simpara>
@@ -274,11 +274,11 @@ Loaded Configuration File C:\Program Files\PHP\8.2\php.ini
274274
PECL 使建立共享 PHP 扩展库更容易。用
275275
<link xlink:href="&url.php.pear.cli;">pecl 命令</link>这样做:
276276
</simpara>
277-
<para>
278-
<screen>
279-
$ pecl install extname
280-
</screen>
281-
</para>
277+
<screen>
278+
<![CDATA[
279+
$ pecl install extname
280+
]]>
281+
</screen>
282282
<simpara>
283283
这将下载 <emphasis>extname</emphasis> 的源代码,编译之,并将
284284
<filename>extname.so</filename> 安装到 <link
@@ -291,19 +291,19 @@ Loaded Configuration File C:\Program Files\PHP\8.2\php.ini
291291
<literal>beta</literal> 状态的包。如果没有 <literal>stable</literal>
292292
包可用,也可以用以下命令安装一个 <literal>beta</literal> 包:
293293
</simpara>
294-
<para>
295-
<screen>
296-
$ pecl install extname-beta
297-
</screen>
298-
</para>
294+
<screen>
295+
<![CDATA[
296+
$ pecl install extname-beta
297+
]]>
298+
</screen>
299299
<para>
300300
也可以用此命令安装一个指定的版本:
301301
</para>
302-
<para>
303-
<screen>
304-
$ pecl install extname-0.1
305-
</screen>
306-
</para>
302+
<screen>
303+
<![CDATA[
304+
$ pecl install extname-0.1
305+
]]>
306+
</screen>
307307
<note>
308308
<para>
309309
&php.ini; 中启用扩展之后,需要重新启动 web 服务以使更改生效。
@@ -475,25 +475,25 @@ $ mv extname-x.x.x extname
475475
<simpara>
476476
这将产生以下目录:
477477
</simpara>
478-
<para>
479-
<screen>
480-
/path/to/php/src/dir/ext/extname
481-
</screen>
482-
</para>
478+
<screen>
479+
<![CDATA[
480+
/path/to/php/src/dir/ext/extname
481+
]]>
482+
</screen>
483483
<simpara>
484484
此时 PHP 需要强制重新生成配置脚本,然后正常编译 PHP:
485485
</simpara>
486-
<para>
487-
<screen>
486+
<screen>
487+
<![CDATA[
488488
$ cd /path/to/php/src/dir
489489
$ rm configure
490490
$ ./buildconf --force
491491
$ ./configure --help
492492
$ ./configure --with-extname --enable-someotherext --with-foobar
493493
$ make
494494
$ make install
495-
</screen>
496-
</para>
495+
]]>
496+
</screen>
497497
<note>
498498
<simpara>
499499
要运行 <command>buildconf</command> 脚本,需要 <command>autoconf</command>
@@ -507,11 +507,11 @@ $ make install
507507
取决于扩展库。通常不需要外部库文件的扩展库使用
508508
<option role="configure">--enable</option>。当然,在 <command>buildconf</command> 之后运行:
509509
</simpara>
510-
<para>
511-
<screen>
512-
$ ./configure --help | grep extname
513-
</screen>
514-
</para>
510+
<screen>
511+
<![CDATA[
512+
$ ./configure --help | grep extname
513+
]]>
514+
</screen>
515515
</sect1>
516516
</chapter>
517517

reference/curl/constants_curl_setopt.xml

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4142,10 +4142,7 @@
41424142
</term>
41434143
<listitem>
41444144
<para>
4145-
Accepts a bitmask setting WebSocket behavior options.
4146-
The only available option is <constant>CURLWS_RAW_MODE</constant>.
4147-
Defaults to <literal>0</literal>.
4148-
Available as of PHP 8.3.0 and cURL 7.86.0.
4145+
接受位掩码设置 WebSocket 行为选项。唯一可用的选项是 <constant>CURLWS_RAW_MODE</constant>。默认为 <literal>0</literal>。自 PHP 8.3.0 和 cURL 7.86.0 起可用。
41494146
</para>
41504147
</listitem>
41514148
</varlistentry>
@@ -4156,7 +4153,7 @@
41564153
</term>
41574154
<listitem>
41584155
<para>
4159-
A <type>callable</type> with the following signature:
4156+
具有以下签名的 <type>callable</type>
41604157
<methodsynopsis>
41614158
<type>int</type><methodname><replaceable>callback</replaceable></methodname>
41624159
<methodparam><type>resource</type><parameter>curlHandle</parameter></methodparam>
@@ -4170,46 +4167,44 @@
41704167
<term><parameter>curlHandle</parameter></term>
41714168
<listitem>
41724169
<simpara>
4173-
The cURL handle.
4170+
cURL 句柄。
41744171
</simpara>
41754172
</listitem>
41764173
</varlistentry>
41774174
<varlistentry>
41784175
<term><parameter>bytesToDownload</parameter></term>
41794176
<listitem>
41804177
<simpara>
4181-
The total number of bytes expected to be downloaded in this transfer.
4178+
本次传输预计下载的总字节数。
41824179
</simpara>
41834180
</listitem>
41844181
</varlistentry>
41854182
<varlistentry>
41864183
<term><parameter>bytesDownloaded</parameter></term>
41874184
<listitem>
41884185
<simpara>
4189-
The number of bytes downloaded so far.
4186+
迄今已下载的字节数。
41904187
</simpara>
41914188
</listitem>
41924189
</varlistentry>
41934190
<varlistentry>
41944191
<term><parameter>bytesToUpload</parameter></term>
41954192
<listitem>
41964193
<simpara>
4197-
The total number of bytes expected to be uploaded in this transfer.
4194+
本次传输预计上传的总字节数。
41984195
</simpara>
41994196
</listitem>
42004197
</varlistentry>
42014198
<varlistentry>
42024199
<term><parameter>bytesUploaded</parameter></term>
42034200
<listitem>
42044201
<simpara>
4205-
The number of bytes uploaded so far.
4202+
迄今已上传的字节数。
42064203
</simpara>
42074204
</listitem>
42084205
</varlistentry>
42094206
</variablelist>
4210-
Return <literal>1</literal> to abort the transfer
4211-
and set a <constant>CURLE_ABORTED_BY_CALLBACK</constant> error.
4212-
Available as of PHP 8.2.0 and cURL 7.32.0.
4207+
返回 <literal>1</literal> 可中止传输并设置 <constant>CURLE_ABORTED_BY_CALLBACK</constant> 错误。自 PHP 8.2.0 和 cURL 7.32.0 起可用。
42134208
</para>
42144209
</listitem>
42154210
</varlistentry>
@@ -4220,12 +4215,9 @@
42204215
</term>
42214216
<listitem>
42224217
<para>
4223-
A timeout in seconds cURL will wait for a response from an
4224-
<acronym>FTP</acronym>, <acronym>SFTP</acronym>, <acronym>IMAP</acronym>,
4225-
<acronym>SCP</acronym>, <acronym>SMTP</acronym>, or a <acronym>POP3</acronym> server.
4226-
This option replaces the existing <constant>CURLOPT_FTP_RESPONSE_TIMEOUT</constant>
4227-
option which is deprecated in cURL 7.85.0.
4228-
Available as of PHP 8.4.0.
4218+
cURL 将等待来自 <acronym>FTP</acronym>、<acronym>SFTP</acronym>、<acronym>IMAP</acronym>、<acronym>SCP</acronym>、<acronym>SMTP</acronym>
4219+
或 <acronym>POP3</acronym> 服务器响应的超时秒数。此选项取代了现有的 <constant>CURLOPT_FTP_RESPONSE_TIMEOUT</constant> 选项,该选项在
4220+
cURL 7.85.0 中已弃用。自 PHP 8.4.0 起可用。
42294221
</para>
42304222
</listitem>
42314223
</varlistentry>
@@ -4236,10 +4228,7 @@
42364228
</term>
42374229
<listitem>
42384230
<para>
4239-
Specifies the OAuth 2.0 access token.
4240-
Set to &null; to disable.
4241-
Defaults to &null;.
4242-
Available as of PHP 7.0.7 and cURL 7.33.0.
4231+
指定 OAuth 2.0 访问 token。设置为 &null; 以禁用。默认为 &null;。自 PHP 7.0.7 和 cURL 7.33.0 起可用。
42434232
</para>
42444233
</listitem>
42454234
</varlistentry>

0 commit comments

Comments
 (0)