-
Notifications
You must be signed in to change notification settings - Fork 110
Expand file tree
/
Copy pathsetup.xml
More file actions
59 lines (57 loc) · 2.15 KB
/
Copy pathsetup.xml
File metadata and controls
59 lines (57 loc) · 2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 57c7669a1f5336cb17413e0b46540c52c77ee84f Maintainer: mowangjuanzi Status: ready -->
<!-- CREDITS: Luffy -->
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="parallel.setup">
<title>安装</title>
<simplesect xml:id="parallel.requirements">
&reftitle.required;
<simpara>
parallel 要求启用 ZTS(Zend 线程安全)PHP 编译(<option role="configure">--enable-zts</option>,或者 PHP 8.0.0 之前的非 Windows
系统是 <option role="configure">--enable-maintainer-zts</option>)
</simpara>
<caution>
<simpara>
Zend 线程安全在编译后无法启用,因为他是编译时的配置项。
</simpara>
</caution>
<simpara>
parallel 应该在任何有有效的 Posix Thread 头文件(pthread.h)和 PHP ZTS 的地方编译,包含 Windows(使用 redhat 的 pthread-w32 项目)。
</simpara>
</simplesect>
<simplesect xml:id="parallel.installation">
&reftitle.install;
<simpara>
parallel 版本由 PECL 托管,源代码由
<link xlink:href="&url.git.hub;krakjoe/parallel">github</link> 托管,最��单的安装办法是使用 PECL 安装 <link xlink:href="&url.pecl.package;parallel">&url.pecl.package;parallel</link>.
</simpara>
<simpara>
Windows 用户可以从 <link xlink:href="&url.pecl.package;parallel">PECL</link> 网站下载预编译的已发布的二进制文件。
</simpara>
<caution>
<simpara>
Windows 用户需要采取额外的步骤,将 <filename>pthreadVC<replaceable>?</replaceable>.dll</filename>(随 Windows 一起发布)添加到 <envar>PATH</envar> 中。
</simpara>
</caution>
</simplesect>
</chapter>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->