reference/libxml/setup.xml
6ec541d590b598769e62d9220121538f3a2925b2
...
...
@@ -9,15 +9,67 @@
9
9
&reftitle.required;
10
10
<para>
11
11
This extension requires <link xlink:href="&url.libxml;">libxml</link> &gt;=
12
-
2.6.0.
12
+
2.9.0 as of PHP 8.0. libxml &gt;= 2.6.0 prior to PHP 8.0.
13
13
</para>
14
14
</section>
15
15
<!-- }}} -->
16
16

17
-
<!-- {{{ Installation -->
17
+
<!-- {{{ Installation PHP >= 7.4 -->
18
18
<section xml:id="libxml.installation">
19
-
&reftitle.install;
20
-
&no.install;
19
+
<title>Installation for PHP versions &gt;= 7.4</title>
20
+
<para>
21
+
The libxml extension is enabled by default, although it may be disabled with
22
+
<option role="configure">--without-libxml</option>.
23
+
</para>
24
+
<para>
25
+
PHP uses <literal>pkg-config</literal> to select the right library file, header files,
26
+
and compile flags to use for libxml2.
27
+
To ensure that the desired version of libxml2 is selected,
28
+
the <envar>PKG_CONFIG_PATH</envar> environment variable may
29
+
be used to control the search path for <literal>pkg-config</literal> prior to running the configure script:
30
+
<![CDATA[PKG_CONFIG_PATH="/path/to/libxml2/prefix/lib/pkgconfig:/lib/pkgconfig"]]>
31
+
</para>
32
+
</section>
33
+
<!-- }}} -->
34
+

35
+
<!-- {{{ Installation PHP < 7.4 -->
36
+
<section xml:id="libxml.installation_old">
37
+
<title>Installation for PHP versions &lt; 7.4</title>
38
+
<para>
39
+
The libxml extension is enabled by default, although it may be disabled with
40
+
<option role="configure">--disable-libxml</option>.
41
+
</para>
42
+
<para>
43
+
The optional <option role="configure">--with-libxml-dir</option>
44
+
directive is used to specify the location of <literal>libxml</literal>
45
+
on the system that PHP is being compiled on, otherwise only the
46
+
default locations are scanned. The <literal>configure</literal> process
47
+
checks for libxml (specifically, <literal>xml2-config</literal>) in the
48
+
following order:
49
+
</para>
50
+
<orderedlist>
51
+
<listitem>
52
+
<para>
53
+
The location ([DIR]) specified with <option role="configure">--with-libxml-dir</option>
54
+
([DIR]=<filename>/bin/xml2-config</filename>)
55
+
</para>
56
+
</listitem>
57
+
<listitem>
58
+
<para>
59
+
<filename>/usr/local/bin/xml2-config</filename>
60
+
</para>
61
+
</listitem>
62
+
<listitem>
63
+
<para>
64
+
<filename>/usr/bin/xml2-config</filename>
65
+
</para>
66
+
</listitem>
67
+
</orderedlist>
68
+
<para>
69
+
If <literal>configure</literal> cannot find <filename>xml2-config</filename> in the directory
70
+
specified by <option role="configure">--with-libxml-dir</option>, then
71
+
it'll continue on and check the default locations.
72
+
</para>
21
73
</section>
22
74
<!-- }}} -->
23
75

...
...
@@ -57,4 +109,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si
57
109
vim: et tw=78 syn=sgml
58
110
vi: ts=1 sw=1
59
111
-->
60
-

61
112