com php-src: abstain from using xmlCleanupParser: ext/libxml/libxml.c
| From: | Anatol Belski | Date: | Tue, 17 Feb 2015 09:37:52 +0000 |
| Subject: | com php-src: abstain from using xmlCleanupParser: ext/libxml/libxml.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-84959@lists.php.net to get a copy of this message | ||
Commit: 8742276eb3905eb97a585417000c7b8df85006d4
Author: Anatol Belski <ab@php.net> Tue, 17 Feb 2015 10:37:52 +0100
Parents: 4ff333f610a5178ca500e7145212624150771df4
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8742276eb3905eb97a585417000c7b8df85006d4
Log:
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.
Changed paths:
M ext/libxml/libxml.c
Diff:
diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c
index 0eee3ff..a9490f7 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);