[php-src] Issue #12702: libxml2 2.12.0 issue building from src

From: Date: Fri, 17 Nov 2023 14:35:01 +0000
Subject: [php-src] Issue #12702: libxml2 2.12.0 issue building from src
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-245828@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/12702 Author: nono303 ### Description Hi, Testing libxml2 2.12.0 released yesterday, I had issue during PHP compilation (php 8.2.12 on Windows vs17 x64) seems libxml2 headers had been moved / cleaned …. I had to patch ext/libxml & ext/dom to have it building ```patch diff --git a/ext/dom/document.c b/ext/dom/document.c index 64da4f051b..3c71f03ba3 100644 --- a/ext/dom/document.c +++ b/ext/dom/document.c @@ -26,6 +26,7 @@ #ifdef LIBXML_SCHEMAS_ENABLED #include <libxml/relaxng.h> #include <libxml/xmlschemas.h> +#include <libxml/xmlsave.h> #endif typedef struct _idsIterator idsIterator; diff --git a/ext/libxml/php_libxml.h b/ext/libxml/php_libxml.h index af1cc7d6ac..b484568bb1 100644 --- a/ext/libxml/php_libxml.h +++ b/ext/libxml/php_libxml.h @@ -35,6 +35,7 @@ extern zend_module_entry libxml_module_entry; #include "zend_smart_str.h" #include <libxml/tree.h> +#include <libxml/parser.h> #define LIBXML_SAVE_NOEMPTYTAG 1<<2 ``` I may let you qualify deeper this point. ### PHP Version PHP 8.2.12 ### Operating System Win 10 x64

« previous php.bugs (#245828) next »