diff options
author | Adam Harvey <aharvey@php.net> | 2011-02-04 10:47:41 +0000 |
---|---|---|
committer | Adam Harvey <aharvey@php.net> | 2011-02-04 10:47:41 +0000 |
commit | 2b4fb94e8e428a0bedefecb168f019ac5313182c (patch) | |
tree | 50e1dd878cdcdc9600933fee80477fcf6a6b8890 /main/streams/plain_wrapper.c | |
parent | c5e86e5a8e774217b23ea8ce49a96a2a53cf08ad (diff) | |
download | php-git-2b4fb94e8e428a0bedefecb168f019ac5313182c.tar.gz |
Fix bug #53913 (Streams functions assume HAVE_GLOB is defined). Patch by Chris
Jones.
Diffstat (limited to 'main/streams/plain_wrapper.c')
-rw-r--r-- | main/streams/plain_wrapper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c index 7c48a8eb9d..b345a186d7 100644 --- a/main/streams/plain_wrapper.c +++ b/main/streams/plain_wrapper.c @@ -855,9 +855,11 @@ static php_stream *php_plain_files_dir_opener(php_stream_wrapper *wrapper, char DIR *dir = NULL; php_stream *stream = NULL; +#ifdef HAVE_GLOB if (options & STREAM_USE_GLOB_DIR_OPEN) { return php_glob_stream_wrapper.wops->dir_opener(&php_glob_stream_wrapper, path, mode, options, opened_path, context STREAMS_REL_CC TSRMLS_CC); } +#endif if (((options & STREAM_DISABLE_OPEN_BASEDIR) == 0) && php_check_open_basedir(path TSRMLS_CC)) { return NULL; |