diff options
author | Gustavo André dos Santos Lopes <cataphract@php.net> | 2011-04-09 18:32:55 +0000 |
---|---|---|
committer | Gustavo André dos Santos Lopes <cataphract@php.net> | 2011-04-09 18:32:55 +0000 |
commit | 047ed8dfbb1beded4bf3fbc590a4052c87644ed2 (patch) | |
tree | e8f488fb9a51aa0addf86474bf1e4887a682fc88 /ext/libxml/libxml.c | |
parent | f2cfb997de5aa7cebaacc3f5b00454ed5fa28ba9 (diff) | |
download | php-git-047ed8dfbb1beded4bf3fbc590a4052c87644ed2.tar.gz |
- Fixed bug #54440: libxml extension ignores default context.
Diffstat (limited to 'ext/libxml/libxml.c')
-rw-r--r-- | ext/libxml/libxml.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c index 0c3b64ea2f..c9fb2871f3 100644 --- a/ext/libxml/libxml.c +++ b/ext/libxml/libxml.c @@ -310,9 +310,7 @@ 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()); - } + context = php_stream_context_from_zval(LIBXML(stream_context), 0); ret_val = php_stream_open_wrapper_ex(path_to_open, (char *)mode, ENFORCE_SAFE_MODE|REPORT_ERRORS, NULL, context); if (isescaped) { |