Skip to content

Commit f597546

Browse files
committed
xmlRelaxNGCleanupTypes() is deprecated as of libxml2 2.10.0
The documentation[1] suggest to call `xmlCleanupParser()` instead, but we are not doing that for reasons[2]. Thus, we do no longer call `xmlRelaxNGCleanupTypes()` for libxml2 ≥ 2.10.0. [1] <https://gnome.pages.gitlab.gnome.org/libxml2/devhelp/libxml2-relaxng.html#xmlRelaxNGCleanupTypes> [2] <8742276> Closes GH-9417.
1 parent c19116f commit f597546

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/libxml/libxml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ PHP_LIBXML_API void php_libxml_initialize(void)
772772
PHP_LIBXML_API void php_libxml_shutdown(void)
773773
{
774774
if (_php_libxml_initialized) {
775-
#ifdef LIBXML_SCHEMAS_ENABLED
775+
#if defined(LIBXML_SCHEMAS_ENABLED) && LIBXML_VERSION < 21000
776776
xmlRelaxNGCleanupTypes();
777777
#endif
778778
/* xmlCleanupParser(); */

0 commit comments

Comments
 (0)