Skip to content

Commit 6a76e5d

Browse files
nielsdosnono303
authored andcommitted
Fix phpGH-12702: libxml2 2.12.0 issue building from src
Fixes phpGH-12702. Co-authored-by: nono303 <[email protected]>
1 parent e43ffb5 commit 6a76e5d

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

NEWS

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ PHP NEWS
55
- Intl:
66
. Fixed bug GH-12635 (Test bug69398.phpt fails with ICU 74.1). (nielsdos)
77

8+
- LibXML:
9+
. Fixed bug GH-12702 (libxml2 2.12.0 issue building from src). (nono303)
10+
811
- PCRE:
912
. Fixed bug GH-12628 (The gh11374 test fails on Alpinelinux). (nielsdos)
1013

ext/dom/document.c

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#if defined(HAVE_LIBXML) && defined(HAVE_DOM)
2424
#include "php_dom.h"
2525
#include <libxml/SAX.h>
26+
#include <libxml/xmlsave.h>
2627
#ifdef LIBXML_SCHEMAS_ENABLED
2728
#include <libxml/relaxng.h>
2829
#include <libxml/xmlschemas.h>

ext/libxml/php_libxml.h

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ extern zend_module_entry libxml_module_entry;
3535

3636
#include "zend_smart_str.h"
3737
#include <libxml/tree.h>
38+
#include <libxml/parser.h>
3839

3940
#define LIBXML_SAVE_NOEMPTYTAG 1<<2
4041

0 commit comments

Comments
 (0)