Установка

Расширение libxml включено по умолчанию, но может быть отключено посредством директивы --disable-libxml.

Необязательная директива --with-libxml-dir используется для задания расположения libxml в системах, на которых PHP скомпилирован, если не директива не используется, поиск будет производиться только по стандартным путям. Процесс configure производит поиск libxml (особенно, xml2-config) по путям в следующем порядке:

  1. Расположение ([DIR]), указанное с помощью директивы --with-libxml-dir ([DIR]=/bin/xml2-config)

  2. /usr/local/bin/xml2-config

  3. /usr/bin/xml2-config

Если configure не найдёт xml2-config в директории, заданной директивой --with-libxml-dir, он продолжит поиск по стандартным путям.

add a note add a note

User Contributed Notes 1 note

up
-32
fred5 at no dot spam dot co dot za
9 years ago
(I tried to enter a bug but the PHP version selection drop down isn't working so I have entered here)

This documentation is very confusing as it refers to xml2-config as a directory and file interchangeably (it is a file) ...so I'm not clear whether to use the containing directory or the actual file in the switch
To Top