summaryrefslogtreecommitdiff
path: root/ext/libxml/libxml.c
diff options
context:
space:
mode:
authorGustavo André dos Santos Lopes <cataphract@php.net>2011-04-09 18:32:55 +0000
committerGustavo André dos Santos Lopes <cataphract@php.net>2011-04-09 18:32:55 +0000
commit09b990f499caa582528689751294500ce310a500 (patch)
tree0f9aa497ae87aa08dadb771858d64b56009059be /ext/libxml/libxml.c
parentdb01e840c206b900b46177502c0add92bc9eb928 (diff)
downloadphp-git-09b990f499caa582528689751294500ce310a500.tar.gz
- Fixed bug #54440: libxml extension ignores default context.
Diffstat (limited to 'ext/libxml/libxml.c')
-rw-r--r--ext/libxml/libxml.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c
index 5d4d0a5f96..222ff98bf2 100644
--- a/ext/libxml/libxml.c
+++ b/ext/libxml/libxml.c
@@ -312,10 +312,8 @@ static void *php_libxml_streams_IO_open_wrapper(const char *filename, const char
}
}
- if (LIBXML(stream_context)) {
- context = zend_fetch_resource(&LIBXML(stream_context) TSRMLS_CC, -1, "Stream-Context", NULL, 1, php_le_stream_context(TSRMLS_C));
- }
-
+ context = php_stream_context_from_zval(LIBXML(stream_context), 0);
+
ret_val = php_stream_open_wrapper_ex(path_to_open, (char *)mode, REPORT_ERRORS, NULL, context);
if (isescaped) {
xmlFree(resolved_path);