summaryrefslogtreecommitdiff
path: root/ext/libxml
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2015-02-17 10:37:52 +0100
committerAnatol Belski <ab@php.net>2015-02-17 10:37:52 +0100
commit8742276eb3905eb97a585417000c7b8df85006d4 (patch)
tree060e18021b15df419c72a8922ddedb59e61aa668 /ext/libxml
parent4ff333f610a5178ca500e7145212624150771df4 (diff)
downloadphp-git-8742276eb3905eb97a585417000c7b8df85006d4.tar.gz
abstain from using xmlCleanupParser
Depending on circumstances, usage of xmlCleanupParser can affect the thread local storage, or even cause crashes in single threaded programs. On shutdown the memory will be freed anyway, however not using xmlCleanupParser helps to avoid possible shutdown crashes.
Diffstat (limited to 'ext/libxml')
-rw-r--r--ext/libxml/libxml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c
index 0eee3ff2bd..a9490f7987 100644
--- a/ext/libxml/libxml.c
+++ b/ext/libxml/libxml.c
@@ -752,7 +752,7 @@ PHP_LIBXML_API void php_libxml_shutdown(void)
#if defined(LIBXML_SCHEMAS_ENABLED)
xmlRelaxNGCleanupTypes();
#endif
- xmlCleanupParser();
+ /* xmlCleanupParser(); */
zend_hash_destroy(&php_libxml_exports);
xmlSetExternalEntityLoader(_php_libxml_default_entity_loader);