mirror of
https://github.com/php/php-src.git
synced 2024-11-27 11:53:33 +08:00
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.
This commit is contained in:
parent
4ff333f610
commit
8742276eb3
@ -752,7 +752,7 @@ PHP_LIBXML_API void php_libxml_shutdown(void)
|
|||||||
#if defined(LIBXML_SCHEMAS_ENABLED)
|
#if defined(LIBXML_SCHEMAS_ENABLED)
|
||||||
xmlRelaxNGCleanupTypes();
|
xmlRelaxNGCleanupTypes();
|
||||||
#endif
|
#endif
|
||||||
xmlCleanupParser();
|
/* xmlCleanupParser(); */
|
||||||
zend_hash_destroy(&php_libxml_exports);
|
zend_hash_destroy(&php_libxml_exports);
|
||||||
|
|
||||||
xmlSetExternalEntityLoader(_php_libxml_default_entity_loader);
|
xmlSetExternalEntityLoader(_php_libxml_default_entity_loader);
|
||||||
|
Loading…
Reference in New Issue
Block a user