php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #40532 Version >= 2.6.20 of libxml2 is required
Submitted: 2007-02-18 11:27 UTC Modified: 2007-03-23 16:12 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: dmcmullan at mac dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: All
Private report: No CVE-ID: None
 [2007-02-18 11:27 UTC] dmcmullan at mac dot com
Description:
------------
To compile PHP with xmlreader, version >= 2.6.20 of libxml2 is required, otherwise the make will fail with an Unreferenced Symbol error for xmlTextReaderSchemaValidate (which was introduced in version 2.6.20).

This page:
http://au.php.net/manual/en/ref.libxml.php
says that version 2.6.0 is required. The actual xmlreader page:
http://au.php.net/manual/en/ref.xmlreader.php
doesn't specify a required version.

The Australian Mirror of xmlsoft doesn't have an up-to-date version of libxml2, so lots of people will hit this problem.

Reproduce code:
---------------
./configure --enable-xmlreader
gmake

Expected result:
----------------
A successful compile!

Actual result:
--------------
Undefined                       first referenced
 symbol                             in file
xmlTextReaderSchemaValidate         ext/xmlreader/.libs/php_xmlreader.o
ld: fatal: Symbol referencing errors. No output written to sapi/cli/php
collect2: ld returned 1 exit status
gmake: *** [sapi/cli/php] Error 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-23 16:12 UTC] vrana@php.net
It is written that xmlreader needs libxml extension. And it is written that libxml requires libxml >= 2.6.20.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Aug 06 22:00:03 2025 UTC