Files
ports/textproc/php83-xsl/files/patch-php__xsl.c
T
Muhammad Moinur Rahman 8a2f42718d textproc/php83-xsl: Remove xsltCleanupGlobals call in ext/xsl MSHUTDOWN
The call to xsltCleanupGlobals() during module shutdown can cause a
segfault in xmlHashFree() when freeing libxslt internal hash tables.
This is the same class of shutdown cleanup issue that led to
xmlCleanupParser() being removed from ext/libxml. The process is about
to exit and the OS will reclaim all memory, making the explicit cleanup
both unnecessary and harmful.
2026-04-06 15:36:38 +02:00

11 lines
305 B
C

--- php_xsl.c.orig 2026-04-04 20:11:31 UTC
+++ php_xsl.c
@@ -212,7 +212,6 @@ PHP_MSHUTDOWN_FUNCTION(xsl)
xsltUnregisterExtModuleFunction ((const xmlChar *) "function",
(const xmlChar *) "http://php.net/xsl");
xsltSetGenericErrorFunc(NULL, NULL);
- xsltCleanupGlobals();
return SUCCESS;
}