summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2015-02-01 00:03:26 -0800
committerStanislav Malyshev <stas@php.net>2015-02-01 00:03:26 -0800
commitd893814b58f94e1d18345cd3de3428a01d2be8e8 (patch)
treef0b9225e98c6910dde09dae2f7520356126c6601
parent0be7d000b4bcabcba62fffabdfad64c5cd28017d (diff)
parent3a39f3ad70e18497493f2bd1db204fff26695889 (diff)
downloadphp-git-d893814b58f94e1d18345cd3de3428a01d2be8e8.tar.gz
Merge branch 'pull-request/1019'
* pull-request/1019: Fix typos Fix bug #64938: libxml_disable_entity_loader setting is shared between threads
-rw-r--r--ext/libxml/libxml.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c
index 1ed6e97e8d..e8e84fc7a5 100644
--- a/ext/libxml/libxml.c
+++ b/ext/libxml/libxml.c
@@ -860,6 +860,12 @@ static PHP_RINIT_FUNCTION(libxml)
xmlSetGenericErrorFunc(NULL, php_libxml_error_handler);
xmlParserInputBufferCreateFilenameDefault(php_libxml_input_buffer_create_filename);
xmlOutputBufferCreateFilenameDefault(php_libxml_output_buffer_create_filename);
+
+ /* Enable the entity loader by default. This ensures that
+ * other threads/requests that might have disabled the loader
+ * do not affect the current request.
+ */
+ LIBXML(entity_loader_disabled) = 0;
}
return SUCCESS;
}