com php-src: Fixed libxml handling default context: ext/libxml/libxml.c

From: Date: Mon, 14 Apr 2014 15:40:21 +0000
Subject: com php-src: Fixed libxml handling default context: ext/libxml/libxml.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77403@lists.php.net to get a copy of this message
Commit: 55440b0870130c9a5c2daaac0f984e5268d652af Author: Xinchen Hui <laruence@gmail.com> Mon, 14 Apr 2014 23:40:21 +0800 Parents: c7513f58d23b0e1d2ff6e097c8b2df6098c5213f Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=55440b0870130c9a5c2daaac0f984e5268d652af Log: Fixed libxml handling default context Changed paths: M ext/libxml/libxml.c Diff: diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c index 1076894..c8eda85 100644 --- a/ext/libxml/libxml.c +++ b/ext/libxml/libxml.c @@ -336,7 +336,7 @@ static void *php_libxml_streams_IO_open_wrapper(const char *filename, const char } } - context = php_stream_context_from_zval(&LIBXML(stream_context), 0); + context = php_stream_context_from_zval(ZVAL_IS_UNDEF(&LIBXML(stream_context))? NULL : &LIBXML(stream_context), 0); ret_val = php_stream_open_wrapper_ex(path_to_open, (char *)mode, REPORT_ERRORS, NULL, context); if (isescaped) { @@ -1050,13 +1050,13 @@ static PHP_FUNCTION(libxml_clear_errors) } /* }}} */ -PHP_LIBXML_API zend_bool php_libxml_disable_entity_loader(zend_bool disable TSRMLS_DC) +PHP_LIBXML_API zend_bool php_libxml_disable_entity_loader(zend_bool disable TSRMLS_DC) /* {{{ */ { zend_bool old = LIBXML(entity_loader_disabled); LIBXML(entity_loader_disabled) = disable; return old; -} +} /* }}} */ /* {{{ proto bool libxml_disable_entity_loader([boolean disable]) Disable/Enable ability to load external entities */

« previous php.cvs (#77403) next »