[php-src] Issue #14563: Build failure with libxml2 v2.13.0

From: Date: Thu, 13 Jun 2024 14:00:01 +0000
Subject: [php-src] Issue #14563: Build failure with libxml2 v2.13.0
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247090@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/14563 Author: nono303 ### Description Build failed when linked to libxml2 v2.13.0 Resulted in this output: ``` php8.dll.def : error LNK2001: unresolved external symbol xmlErrMemory C:\sdk\src\php-sdk\phpmaster\vs17\x64\build\Release\php8.lib : fatal error LNK1120: 1 unresolved externals ``` According to this change in libxml2: https://github.com/GNOME/libxml2/commit/130436917c362d14f0eb3705a0edddc523a9640e here is the corresponding patch for a working build ```patch diff --git "a/ext/libxml/php_libxml2.def" "b/ext/libxml/php_libxml2.def" index 5980df8bf8..c4eac9761c 100644 --- "a/ext/libxml/php_libxml2.def" +++ "b/ext/libxml/php_libxml2.def" @@ -345,7 +345,7 @@ xmlElemDump xmlEncodeEntities xmlEncodeEntitiesReentrant xmlEncodeSpecialChars -xmlErrMemory +xmlCtxtErr xmlFileClose xmlFileMatch xmlFileOpen ``` Build context: - php-src: 8.3.8 _(from git tag)_ - libxml2 : 2.13.0 _(from git tag)_ - MSVC (Windows) 14.40 x64 ### PHP Version PHP 8.3.8 ### Operating System Windows

« previous php.bugs (#247090) next »