8a2f42718d
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.
11 lines
305 B
C
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;
|
|
}
|