diff options
author | Andi Gutmans <andi@php.net> | 2006-02-19 04:29:42 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2006-02-19 04:29:42 +0000 |
commit | 1efe984d08ccab1d06f062ca157e3bdb2cb7cd57 (patch) | |
tree | f12f77325e51b257cb0a8f039ed7568e4ed0fb34 /ext/libxml/libxml.c | |
parent | 8f126f33ac87e3bf1432b2a94f27e5f8f47cde9f (diff) | |
download | php-git-1efe984d08ccab1d06f062ca157e3bdb2cb7cd57.tar.gz |
- Get rid of using ENFORCE_SAFE_MODE.
Diffstat (limited to 'ext/libxml/libxml.c')
-rw-r--r-- | ext/libxml/libxml.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c index 08da6a2ace..9db4d54192 100644 --- a/ext/libxml/libxml.c +++ b/ext/libxml/libxml.c @@ -283,7 +283,7 @@ void *php_libxml_streams_IO_open_wrapper(const char *filename, const char *mode, that the streams layer puts out at times, but for libxml we may try to open files that don't exist, but it is not a failure in xml processing (eg. DTD files) */ - wrapper = php_stream_locate_url_wrapper(resolved_path, &path_to_open, ENFORCE_SAFE_MODE TSRMLS_CC); + wrapper = php_stream_locate_url_wrapper(resolved_path, &path_to_open, 0 TSRMLS_CC); if (wrapper && read_only && wrapper->wops->url_stat) { if (wrapper->wops->url_stat(wrapper, path_to_open, PHP_STREAM_URL_STAT_QUIET, &ssbuf, NULL TSRMLS_CC) == -1) { if (isescaped) { @@ -297,7 +297,7 @@ void *php_libxml_streams_IO_open_wrapper(const char *filename, const char *mode, context = zend_fetch_resource(&LIBXML(stream_context) TSRMLS_CC, -1, "Stream-Context", NULL, 1, php_le_stream_context()); } - ret_val = php_stream_open_wrapper_ex(path_to_open, (char *)mode, ENFORCE_SAFE_MODE|REPORT_ERRORS, NULL, context); + ret_val = php_stream_open_wrapper_ex(path_to_open, (char *)mode, REPORT_ERRORS, NULL, context); if (isescaped) { xmlFree(resolved_path); } |